@lovrabet/lovrabet-cli 2.3.2-beta.1 → 2.3.2-beta.2
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/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/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 +2 -1
- package/skills/lovrabet/SKILL.md +1 -1
- package/skills/lovrabet.manifest.json +3 -3
- package/lib/utils/platform.d.ts +0 -17
- package/lib/utils/platform.js +0 -1
package/lib/framework/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a113_0x4480(_0x4b702c,_0x2d4b29){_0x4b702c=_0x4b702c-0xbc;const _0x12e78e=a113_0x12e7();let _0x448060=_0x12e78e[_0x4b702c];return _0x448060;}(function(_0x1b8e03,_0x5184ad){const _0x2b991a=a113_0x4480,_0x192e4e=_0x1b8e03();while(!![]){try{const _0x3b84bc=-parseInt(_0x2b991a(0xc8))/0x1*(-parseInt(_0x2b991a(0xc0))/0x2)+-parseInt(_0x2b991a(0xbc))/0x3+parseInt(_0x2b991a(0xc9))/0x4*(parseInt(_0x2b991a(0xc4))/0x5)+parseInt(_0x2b991a(0xc3))/0x6*(parseInt(_0x2b991a(0xbe))/0x7)+-parseInt(_0x2b991a(0xca))/0x8*(parseInt(_0x2b991a(0xcc))/0x9)+-parseInt(_0x2b991a(0xc7))/0xa+-parseInt(_0x2b991a(0xc2))/0xb*(-parseInt(_0x2b991a(0xbf))/0xc);if(_0x3b84bc===_0x5184ad)break;else _0x192e4e['push'](_0x192e4e['shift']());}catch(_0x4aa7de){_0x192e4e['push'](_0x192e4e['shift']());}}}(a113_0x12e7,0x8693c));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0x13b998,_0xdc79bc){const _0x20ad88=a113_0x4480,_0x43acd6=_0x13b998[_0x20ad88(0xcd)],{_notice:_0x34c963,..._0x30881d}=_0x13b998;void _0x34c963,baseFormatOutput(_0x30881d,_0xdc79bc),_0xdc79bc[_0x20ad88(0xbd)]===_0x20ad88(0xcb)&&printPrettyNotice(_0x43acd6);}function printPrettyNotice(_0x2b07e7){const _0x32985e=a113_0x4480;if(!_0x2b07e7?.[_0x32985e(0xc1)])return;console[_0x32985e(0xc5)](_0x2b07e7[_0x32985e(0xc1)][_0x32985e(0xc6)]+'\x20('+_0x2b07e7['update']['url']+')');}function a113_0x12e7(){const _0x3c2f0e=['update','407eWDPJl','1086SLHInr','349935AUBEHV','error','message','10844190AYOGbq','887teizKY','20IfLAbk','127536JHGvoD','pretty','513movFkP','_notice','175374nWzjZa','format','6104OszPTW','567564BRFlDD','778cwSCUe'];a113_0x12e7=function(){return _0x3c2f0e;};return a113_0x12e7();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a114_0x587a(){const _0x3de1f5=['sticky','version','3786060RsMdlj','app','indexOf','1552239hmgMOQ','replace','1393360YsPwtt','length','toLowerCase','format','original','1135QcYIDx','dry-run','nonInteractive','dryRun','appcode','number','has','push','alias','type','slice','global','22746933EgoqaY','35YKcMfn','corrected','name','boolean','set','env','keys','string','get','14220XexIgU','help','add','5784KUVYHp','883349XNEORZ','non-interactive'];a114_0x587a=function(){return _0x3de1f5;};return a114_0x587a();}(function(_0x63b6af,_0x467fa8){const _0x43ed0d=a114_0x33df,_0x58277f=_0x63b6af();while(!![]){try{const _0x30a158=-parseInt(_0x43ed0d(0xc9))/0x1+parseInt(_0x43ed0d(0xc5))/0x2+-parseInt(_0x43ed0d(0xd0))/0x3+-parseInt(_0x43ed0d(0xcd))/0x4+parseInt(_0x43ed0d(0xd7))/0x5*(-parseInt(_0x43ed0d(0xc8))/0x6)+parseInt(_0x43ed0d(0xbc))/0x7*(parseInt(_0x43ed0d(0xd2))/0x8)+parseInt(_0x43ed0d(0xbb))/0x9;if(_0x30a158===_0x467fa8)break;else _0x58277f['push'](_0x58277f['shift']());}catch(_0x2bb237){_0x58277f['push'](_0x58277f['shift']());}}}(a114_0x587a,0xcce7c));export function toKebab(_0x128caa){const _0x3312f1=a114_0x33df;return _0x128caa[_0x3312f1(0xd1)](/_/g,'-')['replace'](/-([A-Z]+)/g,(_0x15c491,_0x338fa0)=>'-'+_0x338fa0[_0x3312f1(0xd4)]())[_0x3312f1(0xd1)](/([a-z0-9])([A-Z])/g,(_0x161545,_0x570e4f,_0x31b702)=>_0x570e4f+'-'+_0x31b702)[_0x3312f1(0xd4)]();}function buildKnownFlags(_0x2769b1){const _0x5ed3ea=a114_0x33df,_0x4280e4=new Set();for(const _0x30bc7f of _0x2769b1){_0x4280e4[_0x5ed3ea(0xc7)](_0x30bc7f[_0x5ed3ea(0xbe)]),_0x4280e4[_0x5ed3ea(0xc7)](toCamelCase(_0x30bc7f['name']));}for(const _0x34421b of[_0x5ed3ea(0xd8),_0x5ed3ea(0xda),'yes',_0x5ed3ea(0xd5)]){_0x4280e4[_0x5ed3ea(0xc7)](_0x34421b);}for(const _0x5a708a of[_0x5ed3ea(0xc6),_0x5ed3ea(0xc1),_0x5ed3ea(0xdb),_0x5ed3ea(0xce),_0x5ed3ea(0xd9),_0x5ed3ea(0xca),'ci',_0x5ed3ea(0xba),_0x5ed3ea(0xcc)]){_0x4280e4[_0x5ed3ea(0xc7)](_0x5a708a);}return _0x4280e4;}function buildFlagTypeMap(_0x3623dd){const _0x44ee8d=a114_0x33df,_0x4db6cb=new Map();for(const _0xd78bc4 of _0x3623dd){_0x4db6cb[_0x44ee8d(0xc0)](_0xd78bc4[_0x44ee8d(0xbe)],_0xd78bc4[_0x44ee8d(0xb8)]),_0x4db6cb['set'](toCamelCase(_0xd78bc4[_0x44ee8d(0xbe)]),_0xd78bc4['type']);}return _0x4db6cb;}function toCamelCase(_0x256a3c){return _0x256a3c['replace'](/-([a-z])/g,(_0x2d2ede,_0x4c46f7)=>_0x4c46f7['toUpperCase']());}function a114_0x33df(_0x232808,_0x3f4f9d){_0x232808=_0x232808-0xb6;const _0x587a21=a114_0x587a();let _0x33df35=_0x587a21[_0x232808];return _0x33df35;}function aliasHandler(_0x4c7a3e,_0x2997f7){const _0x5ecf58=a114_0x33df,_0x37c951=[];for(const _0x2f2296 of Object[_0x5ecf58(0xc2)](_0x4c7a3e)){if(_0x2997f7[_0x5ecf58(0xdd)](_0x2f2296))continue;const _0x52bc33=toKebab(_0x2f2296);_0x52bc33!==_0x2f2296&&_0x2997f7[_0x5ecf58(0xdd)](_0x52bc33)&&_0x37c951['push']({'original':_0x2f2296,'corrected':_0x52bc33,'handler':_0x5ecf58(0xb7)});}return _0x37c951;}function stickyHandler(_0x3a54dc,_0x109a65,_0x5ef353){const _0x12e1f2=a114_0x33df,_0x24455d=[];for(const [_0x135d46,_0x476dfb]of Object['entries'](_0x3a54dc)){if(_0x476dfb!==!![])continue;for(let _0x55f663=_0x135d46[_0x12e1f2(0xd3)]-0x1;_0x55f663>0x0;_0x55f663--){const _0x151215=_0x135d46[_0x12e1f2(0xb9)](0x0,_0x55f663),_0x4ab94e=_0x135d46[_0x12e1f2(0xb9)](_0x55f663),_0x51a412=toKebab(_0x151215),_0x15c4c8=toCamelCase(_0x151215),_0x30c69f=_0x109a65[_0x12e1f2(0xdd)](_0x151215)?_0x151215:_0x109a65['has'](_0x51a412)?_0x51a412:_0x109a65[_0x12e1f2(0xdd)](_0x15c4c8)?_0x15c4c8:null;if(!_0x30c69f)continue;const _0x4bde55=_0x5ef353[_0x12e1f2(0xc4)](_0x30c69f)??_0x12e1f2(0xc3);let _0xcc1ee8;if(_0x4bde55===_0x12e1f2(0xdc)){const _0x1ca682=Number(_0x4ab94e);if(isNaN(_0x1ca682)||_0x4ab94e==='')continue;_0xcc1ee8=_0x1ca682;}else{if(_0x4bde55===_0x12e1f2(0xbf))continue;else{if(_0x4ab94e==='')continue;_0xcc1ee8=_0x4ab94e;}}_0x24455d[_0x12e1f2(0xb6)]({'original':_0x135d46,'corrected':_0x30c69f+'='+_0xcc1ee8,'handler':_0x12e1f2(0xcb)});break;}}return _0x24455d;}export function correctFlags(_0x397d60,_0x3f1ac5){const _0x468ce7=a114_0x33df,_0x24b446=buildKnownFlags(_0x3f1ac5),_0x21bf2f=buildFlagTypeMap(_0x3f1ac5),_0x34c272=aliasHandler(_0x397d60,_0x24b446),_0x5aa181=stickyHandler(_0x397d60,_0x24b446,_0x21bf2f),_0x56ffeb=[..._0x34c272,..._0x5aa181];if(_0x56ffeb[_0x468ce7(0xd3)]===0x0)return{'flags':_0x397d60,'corrections':[]};const _0x133c99={..._0x397d60},_0x3fd321=new Set();for(const _0x500497 of _0x34c272){_0x133c99[_0x500497[_0x468ce7(0xbd)]]=_0x397d60[_0x500497[_0x468ce7(0xd6)]],_0x3fd321[_0x468ce7(0xc7)](_0x500497['original']);}for(const _0x3386e8 of _0x5aa181){const _0x4f2680=_0x3386e8[_0x468ce7(0xbd)][_0x468ce7(0xcf)]('='),_0x4bff28=_0x3386e8[_0x468ce7(0xbd)][_0x468ce7(0xb9)](0x0,_0x4f2680),_0xcef82f=_0x3386e8[_0x468ce7(0xbd)][_0x468ce7(0xb9)](_0x4f2680+0x1),_0x2ab6b0=_0x21bf2f[_0x468ce7(0xc4)](_0x4bff28)??_0x468ce7(0xc3);_0x2ab6b0===_0x468ce7(0xdc)?_0x133c99[_0x4bff28]=Number(_0xcef82f):_0x133c99[_0x4bff28]=_0xcef82f,_0x3fd321[_0x468ce7(0xc7)](_0x3386e8[_0x468ce7(0xd6)]);}for(const _0x260995 of _0x3fd321){delete _0x133c99[_0x260995];}return{'flags':_0x133c99,'corrections':_0x56ffeb};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a115_0x293e0e=a115_0x5385;(function(_0x1fdcfb,_0x449573){const _0x1cca45=a115_0x5385,_0x48ac0c=_0x1fdcfb();while(!![]){try{const _0x10668b=-parseInt(_0x1cca45(0x86))/0x1*(parseInt(_0x1cca45(0x9b))/0x2)+parseInt(_0x1cca45(0xa5))/0x3+-parseInt(_0x1cca45(0xa2))/0x4*(parseInt(_0x1cca45(0xa0))/0x5)+parseInt(_0x1cca45(0x89))/0x6*(-parseInt(_0x1cca45(0x9f))/0x7)+parseInt(_0x1cca45(0x9c))/0x8+parseInt(_0x1cca45(0x9e))/0x9+-parseInt(_0x1cca45(0x88))/0xa;if(_0x10668b===_0x449573)break;else _0x48ac0c['push'](_0x48ac0c['shift']());}catch(_0x5aebfe){_0x48ac0c['push'](_0x48ac0c['shift']());}}}(a115_0x49f0,0x51255));import{CliErrors}from'../errors.js';const RATE_LIMIT_ERROR_CODES=new Set([a115_0x293e0e(0xa1),'MAX_QPS_LIMIT',a115_0x293e0e(0x93)]);function nonEmptyString(_0x2637f9){const _0x1221ac=a115_0x293e0e;if(typeof _0x2637f9!=='string')return undefined;const _0x310fbc=_0x2637f9[_0x1221ac(0xa3)]();return _0x310fbc||undefined;}function a115_0x49f0(){const _0x535726=['number','681TidpSM','Request\x20rate\x20limit\x20exceeded.','6197300kIBAYY','18KSNOir','Wait\x20','test','retry-after','Retry\x20after\x20','object','retryAfterSeconds','get','isArray','errorCode','IP_RATE_LIMIT_EXCEEDED','isInteger','\x20Retry\x20only\x20the\x20failed\x20item;\x20keep\x20requests\x20serial\x20and\x20preserve\x20completed\x20checkpoints.','Retry\x20after\x20a\x20short\x20delay.','has','toUpperCase','entries','function','618SlnjNE','3243160ghWjIW','\x20seconds\x20before\x20retrying.','4956885eYngTW','159362RkSSbX','732615ugrtpb','EXCEED_MAX_QPS_LIMIT','4sRWCNE','trim','call','1263579Ywcsjn','status','Retry-After','rateLimited'];a115_0x49f0=function(){return _0x535726;};return a115_0x49f0();}function buildRetryHint(_0x34de42){const _0x314eed=a115_0x293e0e,_0x442750=nonEmptyString(_0x34de42),_0x36e015=_0x442750?/^\d+$/[_0x314eed(0x8b)](_0x442750)?_0x314eed(0x8a)+_0x442750+_0x314eed(0x9d):_0x314eed(0x8d)+_0x442750+'.':_0x314eed(0x96);return _0x36e015+_0x314eed(0x95);}function a115_0x5385(_0x4769cc,_0x94358b){_0x4769cc=_0x4769cc-0x85;const _0x49f01c=a115_0x49f0();let _0x5385a1=_0x49f01c[_0x4769cc];return _0x5385a1;}export function createRateLimitError(_0x331abb){const _0x6daf15=a115_0x293e0e,_0x56b585=nonEmptyString(_0x331abb[_0x6daf15(0x92)])?.[_0x6daf15(0x98)](),_0x5c28eb=Number(_0x331abb[_0x6daf15(0xa6)])===0x1ad||_0x56b585!==undefined&&RATE_LIMIT_ERROR_CODES[_0x6daf15(0x97)](_0x56b585);if(!_0x5c28eb)return undefined;return CliErrors[_0x6daf15(0xa8)](nonEmptyString(_0x331abb['message'])??_0x6daf15(0x87),buildRetryHint(_0x331abb['retryAfter']));}export function readRetryAfter(_0x4ae4f3){const _0x5bedab=a115_0x293e0e;if(!_0x4ae4f3||typeof _0x4ae4f3!==_0x5bedab(0x8e))return undefined;const _0x21c6c3=_0x4ae4f3[_0x5bedab(0x90)];if(typeof _0x21c6c3===_0x5bedab(0x9a)){const _0x37d3b4=_0x21c6c3['call'](_0x4ae4f3,_0x5bedab(0xa7))??_0x21c6c3[_0x5bedab(0xa4)](_0x4ae4f3,_0x5bedab(0x8c));return nonEmptyString(_0x37d3b4);}for(const [_0x48ee33,_0x3c52ea]of Object[_0x5bedab(0x99)](_0x4ae4f3)){if(_0x48ee33['toLowerCase']()==='retry-after')return nonEmptyString(_0x3c52ea)??(typeof _0x3c52ea==='number'?String(_0x3c52ea):undefined);}return undefined;}export function readRetryAfterSeconds(_0x236d18){const _0x150448=a115_0x293e0e;if(!_0x236d18||typeof _0x236d18!==_0x150448(0x8e)||Array[_0x150448(0x91)](_0x236d18))return undefined;const _0x45fc11=_0x236d18[_0x150448(0x8f)];if(typeof _0x45fc11===_0x150448(0x85))return Number[_0x150448(0x94)](_0x45fc11)&&_0x45fc11>=0x0?String(_0x45fc11):undefined;const _0x2e77a4=nonEmptyString(_0x45fc11);return _0x2e77a4&&/^\d+$/[_0x150448(0x8b)](_0x2e77a4)?_0x2e77a4:undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a116_0x2687d2=a116_0x17b1;(function(_0x4c85ea,_0xd7929f){const _0x2b7da6=a116_0x17b1,_0xdade95=_0x4c85ea();while(!![]){try{const _0x319e73=parseInt(_0x2b7da6(0xbe))/0x1+-parseInt(_0x2b7da6(0xb7))/0x2+-parseInt(_0x2b7da6(0xc3))/0x3*(-parseInt(_0x2b7da6(0xcf))/0x4)+parseInt(_0x2b7da6(0xbf))/0x5+-parseInt(_0x2b7da6(0xb8))/0x6+-parseInt(_0x2b7da6(0xba))/0x7+parseInt(_0x2b7da6(0xd4))/0x8*(parseInt(_0x2b7da6(0xc6))/0x9);if(_0x319e73===_0xd7929f)break;else _0xdade95['push'](_0xdade95['shift']());}catch(_0xd6c15){_0xdade95['push'](_0xdade95['shift']());}}}(a116_0x44bf,0x2077d));import{CliErrors}from'../errors.js';import{CLI_BIN_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{toKebab}from'../framework/preparse.js';function a116_0x44bf(){const _0x9ff3e0=['no-','344BCrCVe','command','filter','orderby','Example:\x20','page-size','add','215188KHWzJb','963132IAjfMo','\x20--help`\x20to\x20see\x20accepted\x20flags.','11648rPfrLe','asc','\x20for\x20`','has','85968fQpawk','887270YzARCJ','service','Run\x20`','order-by','444rzNAuN','validation','currentpage','11385RNHsiU','page','current-page','active','name','Put\x20where,\x20select,\x20orderBy,\x20currentPage,\x20and\x20pageSize\x20inside\x20one\x20--params\x20JSON\x20object.\x20','flags','stringify','\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20','2296vDMVmS','meowKey','Unknown\x20flag\x20--','\x20is\x20not\x20a\x20CLI\x20flag\x20for\x20`'];a116_0x44bf=function(){return _0x9ff3e0;};return a116_0x44bf();}function a116_0x17b1(_0x566a1d,_0x212f56){_0x566a1d=_0x566a1d-0xb7;const _0x44bfa2=a116_0x44bf();let _0x17b1f3=_0x44bfa2[_0x566a1d];return _0x17b1f3;}const FILTER_BODY_FIELDS=new Set(['where','select',a116_0x2687d2(0xc2),a116_0x2687d2(0xd7),a116_0x2687d2(0xc8),a116_0x2687d2(0xc5),a116_0x2687d2(0xc7),a116_0x2687d2(0xd9),'pagesize']);export function assertKnownCommandFlags(_0x2f1bb9,_0x6493f){const _0x2854aa=a116_0x2687d2,_0x4788be=new Set(['version']);for(const _0x4406a0 of GLOBAL_FLAGS){_0x4788be[_0x2854aa(0xda)](_0x4406a0[_0x2854aa(0xca)]),_0x4788be[_0x2854aa(0xda)](toKebab(_0x4406a0[_0x2854aa(0xd0)]));}for(const _0x5f7a5c of _0x2f1bb9[_0x2854aa(0xcc)]??[]){_0x4788be['add'](_0x5f7a5c[_0x2854aa(0xca)]);}for(const [_0x3d0f8c,_0x200b33]of Object['entries'](_0x6493f)){const _0x3956fb=toKebab(_0x3d0f8c);if(_0x4788be[_0x2854aa(0xbd)](_0x3956fb))continue;if(_0x200b33===![]&&_0x4788be[_0x2854aa(0xbd)](_0x2854aa(0xd3)+_0x3956fb))continue;if(_0x2f1bb9[_0x2854aa(0xc0)]==='data'&&_0x2f1bb9[_0x2854aa(0xd5)]===_0x2854aa(0xd6)&&FILTER_BODY_FIELDS[_0x2854aa(0xbd)](_0x3956fb))throw CliErrors[_0x2854aa(0xc4)]('--'+_0x3956fb+_0x2854aa(0xd2)+CLI_BIN_NAME+'\x20data\x20filter`.',_0x2854aa(0xcb)+(_0x2854aa(0xd8)+CLI_BIN_NAME+_0x2854aa(0xce))+('\x27'+JSON[_0x2854aa(0xcd)]({'where':{'status':{'$eq':_0x2854aa(0xc9)}},'orderBy':[{'id':_0x2854aa(0xbb)}],'currentPage':0x1,'pageSize':0x14})+'\x27'));throw CliErrors[_0x2854aa(0xc4)](_0x2854aa(0xd1)+_0x3956fb+_0x2854aa(0xbc)+CLI_BIN_NAME+'\x20'+_0x2f1bb9[_0x2854aa(0xc0)]+'\x20'+_0x2f1bb9['command']+'`.',_0x2854aa(0xc1)+CLI_BIN_NAME+'\x20'+_0x2f1bb9[_0x2854aa(0xc0)]+'\x20'+_0x2f1bb9[_0x2854aa(0xd5)]+_0x2854aa(0xb9));}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x47bb3a,_0x35e0e7){var _0x43d2a4=a117_0x16c4,_0x35ecb6=_0x47bb3a();while(!![]){try{var _0x327f15=parseInt(_0x43d2a4(0x1b5))/0x1+parseInt(_0x43d2a4(0x1ae))/0x2*(parseInt(_0x43d2a4(0x1b2))/0x3)+-parseInt(_0x43d2a4(0x1ad))/0x4+-parseInt(_0x43d2a4(0x1b4))/0x5*(parseInt(_0x43d2a4(0x1af))/0x6)+-parseInt(_0x43d2a4(0x1b3))/0x7*(-parseInt(_0x43d2a4(0x1b1))/0x8)+-parseInt(_0x43d2a4(0x1ac))/0x9*(parseInt(_0x43d2a4(0x1aa))/0xa)+-parseInt(_0x43d2a4(0x1b0))/0xb*(-parseInt(_0x43d2a4(0x1ab))/0xc);if(_0x327f15===_0x35e0e7)break;else _0x35ecb6['push'](_0x35ecb6['shift']());}catch(_0x3fcca6){_0x35ecb6['push'](_0x35ecb6['shift']());}}}(a117_0x3989,0xd5044));function a117_0x16c4(_0x289200,_0xe64777){_0x289200=_0x289200-0x1aa;var _0x3989bd=a117_0x3989();var _0x16c477=_0x3989bd[_0x289200];return _0x16c477;}export{extractList,extractPaging}from'@lovrabet/cli-framework';function a117_0x3989(){var _0x57e741=['40AxQNZT','8076SyFlLY','1560609UIDdVM','6294296SiIiTl','1516pxsmxQ','426lEcOEu','12166fbNTRr','6817352tuucvM','1470vVEXJP','14cprUpm','97490eiSusT','1703956KjXMlm'];a117_0x3989=function(){return _0x57e741;};return a117_0x3989();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a118_0x5c5d(_0x14e056,_0x1bb16e){_0x14e056=_0x14e056-0x143;const _0x61c5ba=a118_0x61c5();let _0x5c5d96=_0x61c5ba[_0x14e056];return _0x5c5d96;}(function(_0x274d6d,_0x5d8f6f){const _0x5c7dde=a118_0x5c5d,_0x38d6ec=_0x274d6d();while(!![]){try{const _0x5507c7=parseInt(_0x5c7dde(0x14a))/0x1+-parseInt(_0x5c7dde(0x15e))/0x2+parseInt(_0x5c7dde(0x152))/0x3+-parseInt(_0x5c7dde(0x146))/0x4+-parseInt(_0x5c7dde(0x157))/0x5*(-parseInt(_0x5c7dde(0x164))/0x6)+-parseInt(_0x5c7dde(0x143))/0x7*(parseInt(_0x5c7dde(0x159))/0x8)+parseInt(_0x5c7dde(0x15d))/0x9*(parseInt(_0x5c7dde(0x14c))/0xa);if(_0x5507c7===_0x5d8f6f)break;else _0x38d6ec['push'](_0x38d6ec['shift']());}catch(_0x1752b3){_0x38d6ec['push'](_0x38d6ec['shift']());}}}(a118_0x61c5,0x7782c));import{CLI_BIN_NAME}from'../constant/cli.js';export function buildConfirmationLines(_0x44badc,_0x183087,_0x5df4bc){const _0x5066aa=a118_0x5c5d,_0x10271d=buildConfirmationContext(_0x44badc,_0x183087,_0x5df4bc),_0x28319c=[_0x5066aa(0x14d)+_0x10271d[_0x5066aa(0x167)]];return _0x10271d[_0x5066aa(0x16a)]&&_0x28319c['push'](_0x5066aa(0x15a)+_0x10271d['description']),_0x10271d[_0x5066aa(0x148)]&&_0x28319c['push'](_0x5066aa(0x149)+_0x10271d[_0x5066aa(0x148)]),_0x28319c['push'](_0x5066aa(0x15f)),_0x28319c;}export function reconstructCommandArgv(_0x4c4e47,_0x39abe6){const _0x23233d=a118_0x5c5d,_0x584c4e=[CLI_BIN_NAME,_0x4c4e47[_0x23233d(0x165)],_0x4c4e47[_0x23233d(0x150)]];for(const [_0x31a9a0,_0x3e929e]of Object[_0x23233d(0x163)](_0x39abe6)){if(_0x3e929e===!![])_0x584c4e[_0x23233d(0x161)]('--'+_0x31a9a0);else _0x3e929e!==![]&&_0x3e929e!==undefined&&_0x3e929e!==''&&_0x584c4e['push']('--'+_0x31a9a0+'\x20'+JSON[_0x23233d(0x15b)](_0x3e929e));}return _0x584c4e[_0x23233d(0x161)](_0x23233d(0x15c)),_0x584c4e[_0x23233d(0x151)]('\x20');}function buildConfirmationContext(_0x18d1f4,_0x297376,_0x5fe40b){const _0x346394=a118_0x5c5d,_0x1c8f15=extractAffectedRecords(_0x5fe40b);return{'commandLabel':_0x297376,'description':_0x18d1f4[_0x346394(0x16a)],'affectedRecords':_0x1c8f15};}function a118_0x61c5(){const _0xf08b2d=['id=','affectedRecords','\x20\x20\x20Affected:\x20','109829WFLDGM','cron=','108740qCWYQo','⚠\x20\x20High-risk\x20operation:\x20','title','params=','command','join','396561gUJLwk','schedule-id=','name','scheduled-at','params','2335tTAHjV','name=','536scrwbJ','\x20\x20\x20','stringify','--yes','549VdadxA','1209098LxtvjI','\x20\x20\x20Continue?\x20[y/N]\x20','schedule-id','push','title=','entries','8226pBcxJW','service','length','commandLabel','kind','cron','description','3269bIGbtS','code','code=','1680932UfwEwX'];a118_0x61c5=function(){return _0xf08b2d;};return a118_0x61c5();}function extractAffectedRecords(_0x22e4e0){const _0x24ae75=a118_0x5c5d,_0x524345=[];if(_0x22e4e0[_0x24ae75(0x144)])_0x524345['push'](_0x24ae75(0x145)+_0x22e4e0['code']);if(_0x22e4e0['id'])_0x524345[_0x24ae75(0x161)](_0x24ae75(0x147)+_0x22e4e0['id']);if(_0x22e4e0[_0x24ae75(0x160)])_0x524345[_0x24ae75(0x161)](_0x24ae75(0x153)+_0x22e4e0[_0x24ae75(0x160)]);if(_0x22e4e0[_0x24ae75(0x154)])_0x524345['push'](_0x24ae75(0x158)+_0x22e4e0[_0x24ae75(0x154)]);if(_0x22e4e0['title'])_0x524345[_0x24ae75(0x161)](_0x24ae75(0x162)+_0x22e4e0[_0x24ae75(0x14e)]);if(_0x22e4e0['kind'])_0x524345['push']('kind='+_0x22e4e0[_0x24ae75(0x168)]);if(_0x22e4e0[_0x24ae75(0x169)])_0x524345['push'](_0x24ae75(0x14b)+_0x22e4e0[_0x24ae75(0x169)]);if(_0x22e4e0[_0x24ae75(0x155)])_0x524345['push']('scheduled-at='+_0x22e4e0[_0x24ae75(0x155)]);if(_0x22e4e0['channel'])_0x524345[_0x24ae75(0x161)]('channel='+_0x22e4e0['channel']);if(_0x22e4e0[_0x24ae75(0x156)])_0x524345[_0x24ae75(0x161)](_0x24ae75(0x14f)+_0x22e4e0['params']);return _0x524345[_0x24ae75(0x166)]>0x0?_0x524345['join'](',\x20'):undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a119_0x574d(){const _0x2c415f=['headers','description','3738csXfdQ','status','2321UIccjQ','message','6GKRtfk','10098881FdauHW','string','stringify','319524jVtOkx','2025215YJYqdm','7510aERJrp','188TJDKIJ','1200mYdkfX','validation','code','response','12ZWxnDR','trim','12615bSCMOn','604818tRdXpD','104CTeDgo'];a119_0x574d=function(){return _0x2c415f;};return a119_0x574d();}(function(_0x1f4b08,_0x1db999){const _0x1a84c1=a119_0x54b0,_0x230d01=_0x1f4b08();while(!![]){try{const _0x108732=-parseInt(_0x1a84c1(0x110))/0x1*(-parseInt(_0x1a84c1(0x10c))/0x2)+parseInt(_0x1a84c1(0x11a))/0x3*(-parseInt(_0x1a84c1(0x113))/0x4)+-parseInt(_0x1a84c1(0x111))/0x5+parseInt(_0x1a84c1(0x114))/0x6*(-parseInt(_0x1a84c1(0x108))/0x7)+-parseInt(_0x1a84c1(0x105))/0x8*(-parseInt(_0x1a84c1(0x11b))/0x9)+-parseInt(_0x1a84c1(0x112))/0xa*(-parseInt(_0x1a84c1(0x10a))/0xb)+-parseInt(_0x1a84c1(0x118))/0xc*(parseInt(_0x1a84c1(0x10d))/0xd);if(_0x108732===_0x1db999)break;else _0x230d01['push'](_0x230d01['shift']());}catch(_0x55195f){_0x230d01['push'](_0x230d01['shift']());}}}(a119_0x574d,0x7b218));import{LovrabetError}from'@lovrabet/sdk';function a119_0x54b0(_0x4d2216,_0x44b1ef){_0x4d2216=_0x4d2216-0x105;const _0x574dfe=a119_0x574d();let _0x54b0af=_0x574dfe[_0x4d2216];return _0x54b0af;}import{CliErrors}from'../errors.js';import{createRateLimitError,readRetryAfter,readRetryAfterSeconds}from'../framework/rate-limit.js';export function mapUserFacingExecuteError(_0x2f6103){const _0x1c28f2=a119_0x54b0;if(_0x2f6103 instanceof LovrabetError){const _0x2a583e=userFacingLovrabetMessage(_0x2f6103),_0x22f097=_0x2f6103,_0x1196bf=createRateLimitError({'status':_0x22f097[_0x1c28f2(0x109)],'errorCode':_0x22f097[_0x1c28f2(0x116)],'message':_0x2a583e,'retryAfter':readRetryAfter(_0x22f097['response']?.[_0x1c28f2(0x106)])??readRetryAfterSeconds(_0x22f097[_0x1c28f2(0x117)])});return _0x1196bf??CliErrors[_0x1c28f2(0x115)](_0x2a583e);}return _0x2f6103;}function userFacingLovrabetMessage(_0xb46c92){const _0x54ed61=a119_0x54b0,_0x3ac425=_0xb46c92[_0x54ed61(0x107)];if(_0x3ac425!==undefined&&_0x3ac425!==null){if(typeof _0x3ac425===_0x54ed61(0x10e)&&_0x3ac425[_0x54ed61(0x119)]())return _0x3ac425[_0x54ed61(0x119)]();try{return JSON[_0x54ed61(0x10f)](_0x3ac425);}catch{}}return _0xb46c92[_0x54ed61(0x10b)];}
|
package/lib/framework/runner.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x31c1ef,_0x159cae){const _0x29a7b2=a120_0x3d39,_0x61c435=_0x31c1ef();while(!![]){try{const _0x3d365c=parseInt(_0x29a7b2(0xcc))/0x1*(-parseInt(_0x29a7b2(0xb9))/0x2)+-parseInt(_0x29a7b2(0xd4))/0x3+-parseInt(_0x29a7b2(0xb8))/0x4+-parseInt(_0x29a7b2(0xc7))/0x5+-parseInt(_0x29a7b2(0xbd))/0x6+parseInt(_0x29a7b2(0xc4))/0x7+-parseInt(_0x29a7b2(0xb0))/0x8*(-parseInt(_0x29a7b2(0xdc))/0x9);if(_0x3d365c===_0x159cae)break;else _0x61c435['push'](_0x61c435['shift']());}catch(_0x1b106b){_0x61c435['push'](_0x61c435['shift']());}}}(a120_0x5e24,0xb3a88));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';function a120_0x5e24(){const _0x59e1ab=['production','cancelled','defaultApp','mergedCli','1821432kVhVew','2MOUUPY','newConfigFileName','../core/sdk-client.js','nativeToolAvailable','5200128eDpllv','write','../commands/app/remote-source.js','catch','appcode','pageSize','_notice','378784ZdYBKv','object','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.','713930BdxXzk','formatOutput','authRequired','accessKey','resolve','697979ybiTJl','risk','string','env','update','Unknown\x20app:\x20','appcode\x20\x22','appCode','2834907asoXQo','app','items','High-risk\x20operation\x20`','.appcode\x20to\x20','high-risk-write','command','configMissing','4872276RyphkK','cli-skill','\x20\x20To\x20proceed:\x20','defaultPageSize','pretty','riskLevel','appCodeSource','includes','requiresAppCode','APPCODE','validation','map','apiDomain','nativeToolRequired','defaultVerbose','doctor','local-alias','requiresAuth','\x20or\x20pass\x20','service','../core/api-client.js','rawFlags','execute','isNonInteractive','Set\x20accessKey\x20in\x20','format','confirmHighRisk','currentApp','trim','56VbQHzC','ClientAk','install','name'];a120_0x5e24=function(){return _0x59e1ab;};return a120_0x5e24();}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';function a120_0x3d39(_0x627aff,_0x54f5b2){_0x627aff=_0x627aff-0xa2;const _0x5e2449=a120_0x5e24();let _0x3d3901=_0x5e2449[_0x627aff];return _0x3d3901;}export function resolveAuthMode(_0x12ea45){const _0x51b1d3=a120_0x3d39;return void _0x12ea45,AUTH_MODE[_0x51b1d3(0xb1)];}let sdkClientInitialized=![];export function createPipelineEnv(_0x43e742,_0x10df39){const _0xeb4054=a120_0x3d39,_0x106850=typeof _0x10df39[_0xeb4054(0xd5)]==='string'&&_0x10df39[_0xeb4054(0xd5)][_0xeb4054(0xaf)]();return{'rawFlags':_0x10df39,'appCode':_0x43e742[_0xeb4054(0xd3)]||productEnv(_0xeb4054(0xe5))||(_0x106850?undefined:readAppCodeFromConfig()),'appCodeSource':_0x43e742[_0xeb4054(0xe2)],'apiDomain':getApiDomain(),'runtimeDomain':getRuntimeDomain(),'isNonInteractive':isNonInteractiveMode(_0x10df39),'defaultFormat':_0x43e742[_0xeb4054(0xac)],'defaultPageSize':_0x43e742[_0xeb4054(0xc2)],'defaultVerbose':_0x43e742['verbose'],'riskLevel':_0x43e742[_0xeb4054(0xe1)],'nativeToolAvailable':_0x43e742[_0xeb4054(0xbc)],'accessKey':_0x43e742['accessKey'],'env':_0x43e742[_0xeb4054(0xcf)],'mergedCli':{'defaultApp':_0x43e742[_0xeb4054(0xb6)],'currentApp':_0x43e742[_0xeb4054(0xae)],'appCode':_0x43e742[_0xeb4054(0xd3)]}};}export function createLovrabetRunnerAdapter(_0x3b0b55={}){const _0x368a16=a120_0x3d39,_0x4ff24a={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS['filter'](_0x537e63=>PIPELINE_FLAG_NAMES['has'](_0x537e63[_0x368a16(0xb3)]))[_0x368a16(0xe7)](({name:_0x35b821,type:_0x599041,description:_0x2bb5e5})=>({'name':_0x35b821,'type':_0x599041,'description':_0x2bb5e5})),'formatOutput':_0x3b0b55[_0x368a16(0xc8)]??formatOutput,'getCommandLabel'(_0x1c7b00){const _0x23d062=_0x368a16;return CLI_BIN_NAME+'\x20'+_0x1c7b00[_0x23d062(0xa6)]+'\x20'+_0x1c7b00['command'];},'riskPolicy':{'onViolation'(_0x3b2317,{def:_0x518e7e,env:_0x4ece42}){if(shouldRouteWriteToNativeTool(_0x518e7e,_0x4ece42))return;console['error'](_0x3b2317);},'createError'(_0xa3a41d,{def:_0x1dac77,env:_0x4a04cb}){const _0x486455=_0x368a16;if(shouldRouteWriteToNativeTool(_0x1dac77,_0x4a04cb))return CliErrors[_0x486455(0xe9)](CLI_BIN_NAME+'\x20'+_0x1dac77[_0x486455(0xa6)]+'\x20'+_0x1dac77[_0x486455(0xda)]);return CliErrors['cancelled'](_0xa3a41d);}},async 'prepare'(_0x516d72,_0x4a608f){const _0xf3e44=_0x368a16,_0x305ea9=resolveAuthMode(_0x4a608f);if(_0x516d72[_0xf3e44(0xa4)]!==![]){if(!_0x4a608f[_0xf3e44(0xca)])throw CliErrors[_0xf3e44(0xc9)](_0xf3e44(0xab)+PRODUCT_CONFIG[_0xf3e44(0xba)]+_0xf3e44(0xa5)+productEnvName('ACCESS_KEY')+'.');const {setActiveAK:_0x268807}=await import(_0xf3e44(0xa7));_0x268807(_0x4a608f['accessKey']);}let _0x578b05='';if(_0x516d72[_0xf3e44(0xe4)]!==![]){_0x578b05=_0x4a608f['appCode']??'',_0x578b05=await resolveExplicitAppName(_0x516d72,_0x4a608f,_0x578b05);if(!_0x578b05){await assertSelectedAppNameIsRuntimeAccessible(_0x516d72,_0x4a608f);throw CliErrors[_0xf3e44(0xdb)]('Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20'+PRODUCT_CONFIG['newConfigFileName']+'.');}await assertAppCodeIsRuntimeAccessible(_0x516d72,_0x4a608f,_0x578b05);}if(_0x578b05){const {initSdkClient:_0x3d0a19}=await import(_0xf3e44(0xbb));_0x3d0a19({'appCode':_0x578b05,'env':_0x4a608f[_0xf3e44(0xcf)]??_0xf3e44(0xb4),'runtimeDomain':_0x4a608f['runtimeDomain'],'accessKey':_0x4a608f[_0xf3e44(0xca)],'authMode':_0x305ea9}),sdkClientInitialized=!![];}return{'defaults':{'booleans':{'verbose':_0x4a608f[_0xf3e44(0xea)]},'numbers':{'pagesize':_0x4a608f[_0xf3e44(0xdf)]}},'extras':{'appCode':_0x578b05,'cookie':'','apiDomain':_0x4a608f[_0xf3e44(0xe8)],'apiDir':'','accessKey':_0x4a608f[_0xf3e44(0xca)],'envName':_0x4a608f['env'],'mergedCli':_0x4a608f[_0xf3e44(0xb7)]}};},'confirmHighRisk':_0x3b0b55[_0x368a16(0xad)]??(async({def:_0x158241,env:_0x263dcf,flags:_0x57a019,commandLabel:_0x339cfc})=>{const _0x108a9c=_0x368a16;if(_0x263dcf[_0x108a9c(0xaa)]){const _0x4e13e3=reconstructCommandArgv(_0x158241,_0x57a019);throw CliErrors[_0x108a9c(0xe6)](_0x108a9c(0xd7)+_0x339cfc+'`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a'+(_0x108a9c(0xde)+_0x4e13e3));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0x158241,_0x339cfc,_0x57a019),'createCancelledError':_0x464bde=>CliErrors[_0x108a9c(0xb5)](_0x464bde)});}),'mapDryRunError'(_0x3ba852){return mapUserFacingExecuteError(_0x3ba852);},'mapExecuteError'(_0x190dd8){return mapUserFacingExecuteError(_0x190dd8);},async 'finalize'(){await finalizeLovrabetRuntimeState();}};return _0x4ff24a;}function shouldRouteWriteToNativeTool(_0x515da5,_0x39abaa){const _0x414f73=a120_0x3d39;return _0x39abaa['nativeToolAvailable']===!![]&&(_0x515da5[_0x414f73(0xcd)]===_0x414f73(0xbe)||_0x515da5[_0x414f73(0xcd)]===_0x414f73(0xd9));}const terminalRunnerAdapter=createLovrabetRunnerAdapter();export async function finalizeLovrabetRuntimeState(){const _0x2684fc=a120_0x3d39;try{if(sdkClientInitialized){const {clearSdkClient:_0x4718e9}=await import(_0x2684fc(0xbb));_0x4718e9();}}finally{sdkClientInitialized=![];const {clearActiveAK:_0x474fe}=await import('../core/api-client.js');_0x474fe();}}async function resolveExplicitAppName(_0x11e468,_0x2107bb,_0x1e8e49){const _0x8a6f62=a120_0x3d39;if(_0x11e468[_0x8a6f62(0xe4)]===![])return _0x1e8e49;const _0x308724=typeof _0x2107bb['rawFlags'][_0x8a6f62(0xd5)]==='string'?_0x2107bb[_0x8a6f62(0xa8)][_0x8a6f62(0xd5)][_0x8a6f62(0xaf)]():'';if(!_0x308724)return _0x1e8e49;const _0x321040=typeof _0x2107bb[_0x8a6f62(0xa8)][_0x8a6f62(0xc1)]==='string'&&_0x2107bb[_0x8a6f62(0xa8)][_0x8a6f62(0xc1)][_0x8a6f62(0xaf)]()||productEnv(_0x8a6f62(0xe5));if(_0x321040||_0x2107bb[_0x8a6f62(0xe2)]===_0x8a6f62(0xa3))return _0x1e8e49;const {getRemoteAppList:_0x24c498}=await import('../commands/app/remote-source.js'),_0x5090ac=await _0x24c498({'env':_0x2107bb[_0x8a6f62(0xcf)]??_0x8a6f62(0xb4),'accessKey':_0x2107bb['accessKey']}),_0x2b12b5=findAppByName(_0x5090ac['items'],_0x308724);if(_0x2b12b5&&!isRuntimeAccessibleApp(_0x2b12b5))throw runtimeInaccessibleAppError(_0x2b12b5,'\x22'+_0x308724+'\x22');const _0x453f0b=_0x2b12b5?.[_0x8a6f62(0xd3)]?.[_0x8a6f62(0xaf)]();if(_0x453f0b)return _0x453f0b;throw CliErrors['validation'](_0x8a6f62(0xd1)+_0x308724,'Run\x20`'+CLI_BIN_NAME+_0x8a6f62(0xc6)+_0x308724+_0x8a6f62(0xd8)+PRODUCT_CONFIG['newConfigFileName']+'.');}async function assertSelectedAppNameIsRuntimeAccessible(_0x5452c9,_0x2d2abe){const _0x2d3a18=a120_0x3d39;if(_0x5452c9['requiresAppCode']===![]||!_0x2d2abe[_0x2d3a18(0xca)])return;const _0xe35b10=(typeof _0x2d2abe['rawFlags'][_0x2d3a18(0xd5)]===_0x2d3a18(0xce)&&_0x2d2abe[_0x2d3a18(0xa8)][_0x2d3a18(0xd5)][_0x2d3a18(0xaf)]()?_0x2d2abe[_0x2d3a18(0xa8)][_0x2d3a18(0xd5)]:_0x2d2abe[_0x2d3a18(0xb7)]?.['currentApp']??_0x2d2abe[_0x2d3a18(0xb7)]?.['defaultApp'])?.['trim']();if(!_0xe35b10)return;const {getRemoteAppList:_0x1a0a98}=await import(_0x2d3a18(0xbf)),_0x42daf1=await _0x1a0a98({'env':_0x2d2abe['env']??_0x2d3a18(0xb4),'accessKey':_0x2d2abe[_0x2d3a18(0xca)]}),_0x14dd83=findAppByName(_0x42daf1['items'],_0xe35b10);if(_0x14dd83&&!isRuntimeAccessibleApp(_0x14dd83))throw runtimeInaccessibleAppError(_0x14dd83,'\x22'+_0xe35b10+'\x22');}async function assertAppCodeIsRuntimeAccessible(_0x2feba2,_0xca9b6f,_0x123a10){const _0xe8e82a=a120_0x3d39;if(_0x2feba2['requiresAppCode']===![]||!_0xca9b6f[_0xe8e82a(0xca)])return;const {getRemoteAppList:_0x50cde7}=await import(_0xe8e82a(0xbf)),_0x24c241=await _0x50cde7({'env':_0xca9b6f[_0xe8e82a(0xcf)]??_0xe8e82a(0xb4),'accessKey':_0xca9b6f[_0xe8e82a(0xca)]}),_0x1653e6=findAppByCode(_0x24c241[_0xe8e82a(0xd6)],_0x123a10);if(_0x1653e6&&!isRuntimeAccessibleApp(_0x1653e6))throw runtimeInaccessibleAppError(_0x1653e6,_0xe8e82a(0xd2)+_0x123a10+'\x22');}export async function runCommand(_0x478446,_0x173846,_0x45ed92=terminalRunnerAdapter){const _0x404188=a120_0x3d39;assertKnownCommandFlags(_0x478446,_0x173846[_0x404188(0xa8)]),await runCommandWithAdapter(shouldApplyVersionPolicy(_0x478446)?withVersionPolicy(_0x478446):_0x478446,_0x173846,_0x45ed92);}function shouldApplyVersionPolicy(_0x15371a){const _0x1d11a9=a120_0x3d39;if([_0x1d11a9(0xd0),'schema',_0x1d11a9(0xa2)][_0x1d11a9(0xe3)](_0x15371a[_0x1d11a9(0xa6)]))return![];return!(_0x15371a[_0x1d11a9(0xa6)]===_0x1d11a9(0xdd)&&_0x15371a[_0x1d11a9(0xda)]===_0x1d11a9(0xb2));}function withVersionPolicy(_0x832f0f){return{..._0x832f0f,async 'execute'(_0x318d2e){const _0x4ef4db=a120_0x3d39,_0x534266=await checkCliVersion();assertCliVersionSupported(_0x534266);const _0x4064f1=shouldResolveUpdateNotice(_0x318d2e)?resolveLatestUpdateNotice(_0x534266)[_0x4ef4db(0xc0)](()=>null):Promise[_0x4ef4db(0xcb)](null),_0x13828e=await _0x832f0f[_0x4ef4db(0xa9)](_0x318d2e);return attachUpdateNotice(_0x13828e,await _0x4064f1);}};}function shouldResolveUpdateNotice(_0x3f228d){const _0x510ba6=a120_0x3d39;return _0x3f228d[_0x510ba6(0xac)]===_0x510ba6(0xe0)&&!_0x3f228d['nonInteractive'];}function attachUpdateNotice(_0x4739bb,_0x318a59){const _0x4d573e=a120_0x3d39;if(!_0x318a59||!_0x4739bb||typeof _0x4739bb!==_0x4d573e(0xc5))return _0x4739bb;const _0x1c3007=_0x4739bb,_0x25d926=typeof _0x1c3007['_notice']===_0x4d573e(0xc5)&&_0x1c3007[_0x4d573e(0xc3)]!==null?_0x1c3007[_0x4d573e(0xc3)]:{};return{..._0x1c3007,'_notice':{..._0x25d926,'update':_0x318a59}};}
|
|
1
|
+
(function(_0x9f68b1,_0x11eb16){const _0x4ed917=a120_0x3782,_0x14eb8a=_0x9f68b1();while(!![]){try{const _0x5481b5=parseInt(_0x4ed917(0x110))/0x1+-parseInt(_0x4ed917(0x107))/0x2+-parseInt(_0x4ed917(0x10e))/0x3*(-parseInt(_0x4ed917(0x12a))/0x4)+parseInt(_0x4ed917(0xf0))/0x5*(parseInt(_0x4ed917(0x129))/0x6)+-parseInt(_0x4ed917(0x11c))/0x7+-parseInt(_0x4ed917(0x112))/0x8*(parseInt(_0x4ed917(0x121))/0x9)+parseInt(_0x4ed917(0xfc))/0xa*(-parseInt(_0x4ed917(0xed))/0xb);if(_0x5481b5===_0x11eb16)break;else _0x14eb8a['push'](_0x14eb8a['shift']());}catch(_0x2dff53){_0x14eb8a['push'](_0x14eb8a['shift']());}}}(a120_0x3c20,0xcfebf));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(_0xe4a8cc){const _0x499ba0=a120_0x3782;return void _0xe4a8cc,AUTH_MODE[_0x499ba0(0x127)];}let sdkClientInitialized=![];export function createPipelineEnv(_0x52bcde,_0x4a9529){const _0x4116bf=a120_0x3782,_0x902ed5=typeof _0x4a9529['app']==='string'&&_0x4a9529[_0x4116bf(0x12b)][_0x4116bf(0xf5)]();return{'rawFlags':_0x4a9529,'appCode':_0x52bcde['appCode']||productEnv(_0x4116bf(0xe3))||(_0x902ed5?undefined:readAppCodeFromConfig()),'appCodeSource':_0x52bcde['appCodeSource'],'apiDomain':getApiDomain(),'runtimeDomain':getRuntimeDomain(),'isNonInteractive':isNonInteractiveMode(_0x4a9529),'defaultFormat':_0x52bcde['format'],'defaultPageSize':_0x52bcde[_0x4116bf(0x126)],'defaultVerbose':_0x52bcde[_0x4116bf(0xfa)],'riskLevel':_0x52bcde[_0x4116bf(0x11d)],'nativeToolAvailable':_0x52bcde['nativeToolAvailable'],'accessKey':_0x52bcde[_0x4116bf(0x11b)],'env':_0x52bcde['env'],'mergedCli':{'defaultApp':_0x52bcde['defaultApp'],'currentApp':_0x52bcde[_0x4116bf(0xf7)],'appCode':_0x52bcde['appCode']}};}export function createLovrabetRunnerAdapter(_0x3bf3ba={}){const _0x4d5fb0=a120_0x3782,_0x1da532={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0x4d5fb0(0x123)](_0x4ef5f9=>PIPELINE_FLAG_NAMES[_0x4d5fb0(0xef)](_0x4ef5f9[_0x4d5fb0(0x10f)]))[_0x4d5fb0(0xe7)](({name:_0x58cf8f,type:_0x9cf91f,description:_0x5c1252})=>({'name':_0x58cf8f,'type':_0x9cf91f,'description':_0x5c1252})),'formatOutput':_0x3bf3ba[_0x4d5fb0(0x109)]??formatOutput,'getCommandLabel'(_0x3dd95b){const _0x3cb1e4=_0x4d5fb0;return CLI_BIN_NAME+'\x20'+_0x3dd95b[_0x3cb1e4(0x108)]+'\x20'+_0x3dd95b[_0x3cb1e4(0xfb)];},'riskPolicy':{'onViolation'(_0x50d727,{def:_0x397fb0,env:_0x54e89a}){const _0x23079a=_0x4d5fb0;if(shouldRouteWriteToNativeTool(_0x397fb0,_0x54e89a))return;console[_0x23079a(0xfe)](_0x50d727);},'createError'(_0x10ecfb,{def:_0x3536aa,env:_0x5c911f}){const _0x6fd30a=_0x4d5fb0;if(shouldRouteWriteToNativeTool(_0x3536aa,_0x5c911f))return CliErrors['nativeToolRequired'](CLI_BIN_NAME+'\x20'+_0x3536aa[_0x6fd30a(0x108)]+'\x20'+_0x3536aa[_0x6fd30a(0xfb)]);return CliErrors[_0x6fd30a(0x10d)](_0x10ecfb);}},async 'prepare'(_0x5956aa,_0x27a5f5){const _0x5b2073=_0x4d5fb0,_0x54876f=resolveAuthMode(_0x27a5f5);if(_0x5956aa[_0x5b2073(0x10c)]!==![]){if(!_0x27a5f5[_0x5b2073(0x11b)])throw CliErrors[_0x5b2073(0x103)]('Set\x20accessKey\x20in\x20'+PRODUCT_CONFIG[_0x5b2073(0x125)]+'\x20or\x20pass\x20'+productEnvName(_0x5b2073(0xe4))+'.');const {setActiveAK:_0x4335c8}=await import(_0x5b2073(0xfd));_0x4335c8(_0x27a5f5[_0x5b2073(0x11b)]);}let _0x193fdd='';if(_0x5956aa[_0x5b2073(0x124)]!==![]){_0x193fdd=_0x27a5f5['appCode']??'',_0x193fdd=await resolveExplicitAppName(_0x5956aa,_0x27a5f5,_0x193fdd);if(!_0x193fdd){await assertSelectedAppNameIsRuntimeAccessible(_0x5956aa,_0x27a5f5);throw CliErrors[_0x5b2073(0x119)]('Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20'+PRODUCT_CONFIG[_0x5b2073(0x125)]+'.');}await assertAppCodeIsRuntimeAccessible(_0x5956aa,_0x27a5f5,_0x193fdd);}if(_0x193fdd){const {initSdkClient:_0x1c3bfe}=await import(_0x5b2073(0xee));_0x1c3bfe({'appCode':_0x193fdd,'env':_0x27a5f5['env']??_0x5b2073(0xe5),'runtimeDomain':_0x27a5f5[_0x5b2073(0x104)],'accessKey':_0x27a5f5[_0x5b2073(0x11b)],'authMode':_0x54876f}),sdkClientInitialized=!![];}return{'defaults':{'booleans':{'verbose':_0x27a5f5[_0x5b2073(0x101)]},'numbers':{'pagesize':_0x27a5f5[_0x5b2073(0xf1)]}},'extras':{'appCode':_0x193fdd,'cookie':'','apiDomain':_0x27a5f5[_0x5b2073(0x11a)],'apiDir':'','accessKey':_0x27a5f5[_0x5b2073(0x11b)],'envName':_0x27a5f5[_0x5b2073(0x10a)],'mergedCli':_0x27a5f5[_0x5b2073(0x100)]}};},'confirmHighRisk':_0x3bf3ba[_0x4d5fb0(0xea)]??(async({def:_0xa7c52f,env:_0x5b3e67,flags:_0x2b27d5,commandLabel:_0x1a1576})=>{const _0x3ac4e3=_0x4d5fb0;if(_0x5b3e67['isNonInteractive']){const _0x11db39=reconstructCommandArgv(_0xa7c52f,_0x2b27d5);throw CliErrors[_0x3ac4e3(0x115)]('High-risk\x20operation\x20`'+_0x1a1576+_0x3ac4e3(0xeb)+(_0x3ac4e3(0x118)+_0x11db39));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0xa7c52f,_0x1a1576,_0x2b27d5),'createCancelledError':_0x278107=>CliErrors[_0x3ac4e3(0x10d)](_0x278107)});}),'mapDryRunError'(_0x4dfc41){return mapUserFacingExecuteError(_0x4dfc41);},'mapExecuteError'(_0x561d57){return mapUserFacingExecuteError(_0x561d57);},async 'finalize'(){await finalizeLovrabetRuntimeState();}};return _0x1da532;}function shouldRouteWriteToNativeTool(_0x232d5a,_0x145a2d){const _0x1db6da=a120_0x3782;return _0x145a2d[_0x1db6da(0x102)]===!![]&&(_0x232d5a['risk']===_0x1db6da(0xf9)||_0x232d5a[_0x1db6da(0x113)]==='high-risk-write');}const terminalRunnerAdapter=createLovrabetRunnerAdapter();function a120_0x3c20(){const _0x2913e6=['rawFlags','1078544HutgUH','service','formatOutput','env','items','requiresAuth','cancelled','9xypJyv','name','931572IPlwrw','object','1536WEZqPr','risk','appcode','validation','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.','appcode\x20\x22','\x20\x20To\x20proceed:\x20','configMissing','apiDomain','accessKey','6223070kfopWz','riskLevel','update','doctor','local-alias','14112vGfBQq','.appcode\x20to\x20','filter','requiresAppCode','newConfigFileName','pageSize','ClientAk','cli-skill','1700910rzlyql','1499716tKgEZK','app','APPCODE','ACCESS_KEY','production','schema','map','resolve','../commands/app/remote-source.js','confirmHighRisk','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a','pretty','15917rWDIkA','../core/sdk-client.js','has','25YyOLbK','defaultPageSize','_notice','string','appCode','trim','defaultApp','currentApp','Run\x20`','write','verbose','command','6170HkCLYe','../core/api-client.js','error','install','mergedCli','defaultVerbose','nativeToolAvailable','authRequired','runtimeDomain','nonInteractive'];a120_0x3c20=function(){return _0x2913e6;};return a120_0x3c20();}export async function finalizeLovrabetRuntimeState(){try{if(sdkClientInitialized){const {clearSdkClient:_0x5daec1}=await import('../core/sdk-client.js');_0x5daec1();}}finally{sdkClientInitialized=![];const {clearActiveAK:_0xfe2ea4}=await import('../core/api-client.js');_0xfe2ea4();}}async function resolveExplicitAppName(_0x2e9f8e,_0x3456c3,_0xd1a2f8){const _0x509474=a120_0x3782;if(_0x2e9f8e[_0x509474(0x124)]===![])return _0xd1a2f8;const _0x426236=typeof _0x3456c3[_0x509474(0x106)][_0x509474(0x12b)]===_0x509474(0xf3)?_0x3456c3[_0x509474(0x106)][_0x509474(0x12b)][_0x509474(0xf5)]():'';if(!_0x426236)return _0xd1a2f8;const _0x189104=typeof _0x3456c3[_0x509474(0x106)][_0x509474(0x114)]===_0x509474(0xf3)&&_0x3456c3[_0x509474(0x106)][_0x509474(0x114)][_0x509474(0xf5)]()||productEnv(_0x509474(0xe3));if(_0x189104||_0x3456c3['appCodeSource']===_0x509474(0x120))return _0xd1a2f8;const {getRemoteAppList:_0x3c9b9b}=await import(_0x509474(0xe9)),_0x12fbba=await _0x3c9b9b({'env':_0x3456c3[_0x509474(0x10a)]??_0x509474(0xe5),'accessKey':_0x3456c3[_0x509474(0x11b)]}),_0x56c24f=findAppByName(_0x12fbba['items'],_0x426236);if(_0x56c24f&&!isRuntimeAccessibleApp(_0x56c24f))throw runtimeInaccessibleAppError(_0x56c24f,'\x22'+_0x426236+'\x22');const _0x194133=_0x56c24f?.[_0x509474(0xf4)]?.[_0x509474(0xf5)]();if(_0x194133)return _0x194133;throw CliErrors[_0x509474(0x115)]('Unknown\x20app:\x20'+_0x426236,_0x509474(0xf8)+CLI_BIN_NAME+_0x509474(0x116)+_0x426236+_0x509474(0x122)+PRODUCT_CONFIG['newConfigFileName']+'.');}function a120_0x3782(_0x101485,_0x4641fc){_0x101485=_0x101485-0xe3;const _0x3c2069=a120_0x3c20();let _0x378235=_0x3c2069[_0x101485];return _0x378235;}async function assertSelectedAppNameIsRuntimeAccessible(_0x577caf,_0x298076){const _0x2d5742=a120_0x3782;if(_0x577caf['requiresAppCode']===![]||!_0x298076[_0x2d5742(0x11b)])return;const _0x1c7ce3=(typeof _0x298076[_0x2d5742(0x106)][_0x2d5742(0x12b)]===_0x2d5742(0xf3)&&_0x298076[_0x2d5742(0x106)][_0x2d5742(0x12b)][_0x2d5742(0xf5)]()?_0x298076[_0x2d5742(0x106)][_0x2d5742(0x12b)]:_0x298076['mergedCli']?.[_0x2d5742(0xf7)]??_0x298076['mergedCli']?.[_0x2d5742(0xf6)])?.[_0x2d5742(0xf5)]();if(!_0x1c7ce3)return;const {getRemoteAppList:_0x2fc883}=await import(_0x2d5742(0xe9)),_0x4848a4=await _0x2fc883({'env':_0x298076[_0x2d5742(0x10a)]??_0x2d5742(0xe5),'accessKey':_0x298076[_0x2d5742(0x11b)]}),_0x463738=findAppByName(_0x4848a4['items'],_0x1c7ce3);if(_0x463738&&!isRuntimeAccessibleApp(_0x463738))throw runtimeInaccessibleAppError(_0x463738,'\x22'+_0x1c7ce3+'\x22');}async function assertAppCodeIsRuntimeAccessible(_0x5a7545,_0x3612c7,_0x5ad3f3){const _0x3d7016=a120_0x3782;if(_0x5a7545[_0x3d7016(0x124)]===![]||!_0x3612c7['accessKey'])return;const {getRemoteAppList:_0x4ef09b}=await import(_0x3d7016(0xe9)),_0x2a14b3=await _0x4ef09b({'env':_0x3612c7[_0x3d7016(0x10a)]??_0x3d7016(0xe5),'accessKey':_0x3612c7[_0x3d7016(0x11b)]}),_0x1ac1c9=findAppByCode(_0x2a14b3[_0x3d7016(0x10b)],_0x5ad3f3);if(_0x1ac1c9&&!isRuntimeAccessibleApp(_0x1ac1c9))throw runtimeInaccessibleAppError(_0x1ac1c9,_0x3d7016(0x117)+_0x5ad3f3+'\x22');}export async function runCommand(_0x33726f,_0x5eb67a,_0x5b772a=terminalRunnerAdapter){const _0x1626bc=a120_0x3782;assertKnownCommandFlags(_0x33726f,_0x5eb67a[_0x1626bc(0x106)]),await runCommandWithAdapter(shouldApplyVersionPolicy(_0x33726f)?withVersionPolicy(_0x33726f):_0x33726f,_0x5eb67a,_0x5b772a);}function shouldApplyVersionPolicy(_0x54f4fe){const _0x4d097a=a120_0x3782;if([_0x4d097a(0x11e),_0x4d097a(0xe6),_0x4d097a(0x11f)]['includes'](_0x54f4fe[_0x4d097a(0x108)]))return![];return!(_0x54f4fe[_0x4d097a(0x108)]===_0x4d097a(0x128)&&_0x54f4fe[_0x4d097a(0xfb)]===_0x4d097a(0xff));}function withVersionPolicy(_0x3751a1){return{..._0x3751a1,async 'execute'(_0x57a0f7){const _0x563173=a120_0x3782,_0x450151=await checkCliVersion();assertCliVersionSupported(_0x450151);const _0x3e1986=shouldResolveUpdateNotice(_0x57a0f7)?resolveLatestUpdateNotice(_0x450151)['catch'](()=>null):Promise[_0x563173(0xe8)](null),_0xdb72a0=await _0x3751a1['execute'](_0x57a0f7);return attachUpdateNotice(_0xdb72a0,await _0x3e1986);}};}function shouldResolveUpdateNotice(_0x5cc8a2){const _0x56fa42=a120_0x3782;return _0x5cc8a2['format']===_0x56fa42(0xec)&&!_0x5cc8a2[_0x56fa42(0x105)];}function attachUpdateNotice(_0x354274,_0x2213cc){const _0x2ff3b1=a120_0x3782;if(!_0x2213cc||!_0x354274||typeof _0x354274!==_0x2ff3b1(0x111))return _0x354274;const _0x4b5c08=_0x354274,_0x4c9c37=typeof _0x4b5c08[_0x2ff3b1(0xf2)]==='object'&&_0x4b5c08[_0x2ff3b1(0xf2)]!==null?_0x4b5c08['_notice']:{};return{..._0x4b5c08,'_notice':{..._0x4c9c37,'update':_0x2213cc}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4a78d8,_0x439c29){const _0x21cd72=a121_0x5af2,_0x4581be=_0x4a78d8();while(!![]){try{const _0x3757b1=parseInt(_0x21cd72(0xc6))/0x1+-parseInt(_0x21cd72(0xc3))/0x2*(-parseInt(_0x21cd72(0xc5))/0x3)+-parseInt(_0x21cd72(0xb7))/0x4+parseInt(_0x21cd72(0xbe))/0x5*(-parseInt(_0x21cd72(0xc4))/0x6)+parseInt(_0x21cd72(0xbc))/0x7*(parseInt(_0x21cd72(0xbb))/0x8)+parseInt(_0x21cd72(0xbd))/0x9+-parseInt(_0x21cd72(0xc2))/0xa*(-parseInt(_0x21cd72(0xb9))/0xb);if(_0x3757b1===_0x439c29)break;else _0x4581be['push'](_0x4581be['shift']());}catch(_0x326d9d){_0x4581be['push'](_0x4581be['shift']());}}}(a121_0x47cb,0x576db));import{buildSchemaPayload as a121_0xf441da}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 a121_0x5af2(_0x1c842,_0x2dbc86){_0x1c842=_0x1c842-0xb6;const _0x47cb42=a121_0x47cb();let _0x5af23a=_0x47cb42[_0x1c842];return _0x5af23a;}function a121_0x47cb(){const _0x5e0696=['has','3586jhFynI','none','48672vvpzse','56VPduht','5702571MjQiZl','2762005fTuJZT','service','../commands/registry.js','commands','2850HtYVxj','4lgLvfc','6XEZmzv','238197wXyOkS','166216FCkfNf','required','filter','auth','map','758828Tidjfy'];a121_0x47cb=function(){return _0x5e0696;};return a121_0x47cb();}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 _0x31c035=a121_0x5af2,{serviceRegistry:_0xd68424,findDefinition:_0x45cc98}=await import(_0x31c035(0xc0)),_0x43d2d6=new Set(_0xd68424['map'](_0x4c45d5=>_0x4c45d5[_0x31c035(0xbf)])),_0x58941e=listDynamicServiceEntries()[_0x31c035(0xc8)](_0x5541a1=>!_0x43d2d6[_0x31c035(0xb8)](_0x5541a1[_0x31c035(0xbf)])),_0x3b5112=a121_0xf441da({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':getCliGitCommit(),'globalFlags':GLOBAL_FLAGS,'serviceRegistry':insertDynamicServicesAfterServiceTree(_0xd68424,_0x58941e),'buildAllFlags':buildAllFlags,'findDefinition':(_0xb6397,_0x1143bc)=>_0x45cc98(_0xb6397,_0x1143bc)??findDynamicServiceDefinition(_0xb6397,_0x1143bc)});return normalizeSchemaPayload(_0x3b5112);}function normalizeSchemaPayload(_0x480b0b){const _0x20bd18=a121_0x5af2;return{..._0x480b0b,'schemaVersion':0x2,'services':_0x480b0b['services'][_0x20bd18(0xb6)](_0x4717e2=>({..._0x4717e2,'commands':_0x4717e2[_0x20bd18(0xc1)]['map'](normalizeSchemaCommand)}))};}function normalizeSchemaCommand(_0x432339){const _0x1d2e19=a121_0x5af2,_0x1829bc=_0x432339;return{..._0x432339,'auth':_0x1829bc[_0x1d2e19(0xc9)]??(_0x432339['requiresAuth']?_0x1d2e19(0xc7):_0x1d2e19(0xba))};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2a7624,_0x1db776){const _0x41bcde=a122_0x3536,_0x2edb07=_0x2a7624();while(!![]){try{const _0x5563f0=-parseInt(_0x41bcde(0x1ca))/0x1*(-parseInt(_0x41bcde(0x1d0))/0x2)+parseInt(_0x41bcde(0x1cd))/0x3+parseInt(_0x41bcde(0x1d3))/0x4+-parseInt(_0x41bcde(0x1d2))/0x5+parseInt(_0x41bcde(0x1ce))/0x6*(parseInt(_0x41bcde(0x1cc))/0x7)+-parseInt(_0x41bcde(0x1cf))/0x8+parseInt(_0x41bcde(0x1d5))/0x9*(parseInt(_0x41bcde(0x1d1))/0xa);if(_0x5563f0===_0x1db776)break;else _0x2edb07['push'](_0x2edb07['shift']());}catch(_0x4f23c9){_0x2edb07['push'](_0x2edb07['shift']());}}}(a122_0x59f7,0xa4f2a));export function insertDynamicServicesAfterServiceTree(_0x201923,_0x33f063){const _0x5dc019=a122_0x3536;if(_0x33f063[_0x5dc019(0x1c8)]===0x0)return[..._0x201923];const _0x20a92a=_0x201923[_0x5dc019(0x1c9)](_0x596f52=>_0x596f52[_0x5dc019(0x1d4)]==='service');if(_0x20a92a<0x0)return[..._0x201923,..._0x33f063];return[..._0x201923[_0x5dc019(0x1cb)](0x0,_0x20a92a+0x1),..._0x33f063,..._0x201923[_0x5dc019(0x1cb)](_0x20a92a+0x1)];}function a122_0x3536(_0x5713fd,_0x244515){_0x5713fd=_0x5713fd-0x1c8;const _0x59f734=a122_0x59f7();let _0x353673=_0x59f734[_0x5713fd];return _0x353673;}function a122_0x59f7(){const _0x2854d3=['10UILlFT','319500qjcJBR','367580GrxXAO','service','5869467sopisN','length','findIndex','824eGFLjl','slice','539JUSdxO','623787bWMObK','52146jYdsQZ','8859552ZHVbvI','548jPqCBJ'];a122_0x59f7=function(){return _0x2854d3;};return a122_0x59f7();}
|
package/lib/framework/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a123_0x5a14(_0xc85c0f,_0x554920){_0xc85c0f=_0xc85c0f-0x91;var _0x262701=a123_0x2627();var _0x5a1422=_0x262701[_0xc85c0f];return _0x5a1422;}(function(_0x157721,_0x5011d6){var _0x29b62d=a123_0x5a14,_0x3e6123=_0x157721();while(!![]){try{var _0x52c847=parseInt(_0x29b62d(0x98))/0x1*(-parseInt(_0x29b62d(0x99))/0x2)+parseInt(_0x29b62d(0x92))/0x3+-parseInt(_0x29b62d(0x96))/0x4+-parseInt(_0x29b62d(0x94))/0x5*(-parseInt(_0x29b62d(0x97))/0x6)+-parseInt(_0x29b62d(0x91))/0x7+-parseInt(_0x29b62d(0x95))/0x8+parseInt(_0x29b62d(0x93))/0x9*(parseInt(_0x29b62d(0x9a))/0xa);if(_0x52c847===_0x5011d6)break;else _0x3e6123['push'](_0x3e6123['shift']());}catch(_0x6392b4){_0x3e6123['push'](_0x3e6123['shift']());}}}(a123_0x2627,0x6d540));function a123_0x2627(){var _0x15d11c=['6918240Ixucyz','3462252NGNIYV','12xeczHu','116015PYCIWn','2xEMOKV','18477370dbXIcp','2319261fqIEOd','2080944awtCoX','9owqgCq','210260ovFHYm'];a123_0x2627=function(){return _0x15d11c;};return a123_0x2627();}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const VERSION = "2.3.2-beta.
|
|
2
|
-
export declare const GIT_TAG = "v2.3.2-beta.
|
|
3
|
-
export declare const GIT_COMMIT = "
|
|
4
|
-
export declare const BUILD_TIME = "2026-09-
|
|
1
|
+
export declare const VERSION = "2.3.2-beta.2";
|
|
2
|
+
export declare const GIT_TAG = "v2.3.2-beta.2";
|
|
3
|
+
export declare const GIT_COMMIT = "ebef0c6";
|
|
4
|
+
export declare const BUILD_TIME = "2026-09-04T08:19:26.020Z";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a124_0x1f20(){const _0x5c505c=['49188320fVfIDo','726QdWhxs','2.3.2-beta.2','204960GREWuj','ebef0c6','v2.3.2-beta.2','38905WoxzZS','2026-09-04T08:19:26.020Z','2736QlKjgc','3649242ZZMMxW','556wgAwOC','7737912oduNYz','4351gcXWWy','273XArrSn'];a124_0x1f20=function(){return _0x5c505c;};return a124_0x1f20();}const a124_0x3b5b4a=a124_0x45e1;(function(_0x40b2d7,_0x343306){const _0x3111bd=a124_0x45e1,_0x17c311=_0x40b2d7();while(!![]){try{const _0x5d81f5=parseInt(_0x3111bd(0x192))/0x1*(-parseInt(_0x3111bd(0x190))/0x2)+-parseInt(_0x3111bd(0x18f))/0x3+-parseInt(_0x3111bd(0x197))/0x4+parseInt(_0x3111bd(0x19a))/0x5*(-parseInt(_0x3111bd(0x195))/0x6)+parseInt(_0x3111bd(0x193))/0x7*(parseInt(_0x3111bd(0x18e))/0x8)+-parseInt(_0x3111bd(0x191))/0x9+parseInt(_0x3111bd(0x194))/0xa;if(_0x5d81f5===_0x343306)break;else _0x17c311['push'](_0x17c311['shift']());}catch(_0x10b714){_0x17c311['push'](_0x17c311['shift']());}}}(a124_0x1f20,0x9f965));function a124_0x45e1(_0x2aef82,_0xd019d2){_0x2aef82=_0x2aef82-0x18d;const _0x1f204a=a124_0x1f20();let _0x45e198=_0x1f204a[_0x2aef82];return _0x45e198;}export const VERSION=a124_0x3b5b4a(0x196);export const GIT_TAG=a124_0x3b5b4a(0x199);export const GIT_COMMIT=a124_0x3b5b4a(0x198);export const BUILD_TIME=a124_0x3b5b4a(0x18d);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a125_0x3d6481=a125_0x5e0d;function a125_0x5e0d(_0x36f349,_0x54634d){_0x36f349=_0x36f349-0x123;const _0x2fcf5c=a125_0x2fcf();let _0x5e0d12=_0x2fcf5c[_0x36f349];return _0x5e0d12;}(function(_0x24115f,_0x14c92e){const _0x1b1042=a125_0x5e0d,_0x3dc235=_0x24115f();while(!![]){try{const _0x3e4eeb=parseInt(_0x1b1042(0x130))/0x1+-parseInt(_0x1b1042(0x127))/0x2*(parseInt(_0x1b1042(0x132))/0x3)+-parseInt(_0x1b1042(0x131))/0x4+-parseInt(_0x1b1042(0x12b))/0x5+parseInt(_0x1b1042(0x125))/0x6*(-parseInt(_0x1b1042(0x137))/0x7)+-parseInt(_0x1b1042(0x13a))/0x8*(parseInt(_0x1b1042(0x12c))/0x9)+-parseInt(_0x1b1042(0x12a))/0xa*(-parseInt(_0x1b1042(0x12d))/0xb);if(_0x3e4eeb===_0x14c92e)break;else _0x3dc235['push'](_0x3dc235['shift']());}catch(_0x23815c){_0x3dc235['push'](_0x3dc235['shift']());}}}(a125_0x2fcf,0xbc779));export const ROUTING_CATALOG_DIGEST=a125_0x3d6481(0x123);export const DEFAULT_REGION='cn';function a125_0x2fcf(){const _0x5797e2=['https://daily-runtime.lovrabet.com','indonesia','Indonesia','41caa63f2eaa9f96327376df380668b835ef80916584dc754147daf394c2c513','https://runtime.lovrabet.ai','53892UPONuf','https://skills.lovrabet.id','4954Foljww','https://user.lovrabet.ai','https://api.lovrabet.ai','52610BEaaDu','2439740bTxHVT','724527vnLszK','10175xzgftP','https://user.lovrabet.com','Global','295054wzUXIa','4035860wZEXNW','1233RgXqdg','https://runtime.lovrabet.com','Mainland\x20China','https://api.lovrabet.id','https://skills.lovrabet.ai','959dgNQDo','https://user-daily.lovrabet.com','https://skills-daily.lovrabet.com','64zOGhti','https://user.lovrabet.id'];a125_0x2fcf=function(){return _0x5797e2;};return a125_0x2fcf();}export const REGION_VALUES=['cn','id','global'];export const ENABLED_REGION_VALUES=['cn','id'];export const OFFICIAL_ROUTING_PROFILES={'cn':{'enabled':!![],'label':a125_0x3d6481(0x134),'aliases':['china'],'serviceDomains':{'production':{'user':a125_0x3d6481(0x12e),'api':'https://api.lovrabet.com','runtime':a125_0x3d6481(0x133),'skill':'https://skills.lovrabet.com'},'daily':{'user':a125_0x3d6481(0x138),'api':'https://daily-api.lovrabet.com','runtime':a125_0x3d6481(0x13c),'skill':a125_0x3d6481(0x139)}}},'id':{'enabled':!![],'label':a125_0x3d6481(0x13e),'aliases':[a125_0x3d6481(0x13d)],'serviceDomains':{'production':{'user':a125_0x3d6481(0x13b),'api':a125_0x3d6481(0x135),'runtime':'https://runtime.lovrabet.id','skill':a125_0x3d6481(0x126)}}},'global':{'enabled':![],'label':a125_0x3d6481(0x12f),'aliases':[],'serviceDomains':{'production':{'user':a125_0x3d6481(0x128),'api':a125_0x3d6481(0x129),'runtime':a125_0x3d6481(0x124),'skill':a125_0x3d6481(0x136)}}}};export const REGION_ALIASES={'china':'cn','indonesia':'id'};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a126_0x125e28=a126_0x68f8;(function(_0x37d878,_0x452279){const _0x54323f=a126_0x68f8,_0x278d64=_0x37d878();while(!![]){try{const _0x4f7d67=-parseInt(_0x54323f(0x11e))/0x1+-parseInt(_0x54323f(0x11c))/0x2+parseInt(_0x54323f(0x123))/0x3+-parseInt(_0x54323f(0x11b))/0x4*(-parseInt(_0x54323f(0x124))/0x5)+-parseInt(_0x54323f(0x11f))/0x6*(parseInt(_0x54323f(0x127))/0x7)+-parseInt(_0x54323f(0x120))/0x8+parseInt(_0x54323f(0x11d))/0x9*(parseInt(_0x54323f(0x126))/0xa);if(_0x4f7d67===_0x452279)break;else _0x278d64['push'](_0x278d64['shift']());}catch(_0x2c1064){_0x278d64['push'](_0x278d64['shift']());}}}(a126_0x38e5,0x4298e));export const ENTERPRISE_ROUTING_SCHEMA_DIGEST=a126_0x125e28(0x119);export const ENTERPRISE_ROUTING_PROTOCOL=a126_0x125e28(0x122);export const ENTERPRISE_ROUTING_KIND=a126_0x125e28(0x121);export const ENTERPRISE_ROUTING_DOMAIN_FIELDS=['userDomain',a126_0x125e28(0x128),a126_0x125e28(0x11a),a126_0x125e28(0x125)];function a126_0x68f8(_0xa1dfa2,_0x39c8cb){_0xa1dfa2=_0xa1dfa2-0x119;const _0x38e55c=a126_0x38e5();let _0x68f879=_0x38e55c[_0xa1dfa2];return _0x68f879;}function a126_0x38e5(){const _0x4438e2=['35AXCJyn','apiDomain','51e352a2636c432b76d331cc9ff81c215d7cbe3d1d07ab7bd7bedb7bdb91631c','runtimeDomain','996vgisMN','349440CVMYTY','9MBdDIs','310507zvqEKU','497490kOgGdY','1956616VXtPvP','enterprise','lovrabet-routing/v1','1040238FcciDN','2020lkIuLb','skillDomain','9698190gEEFmG'];a126_0x38e5=function(){return _0x4438e2;};return a126_0x38e5();}export const REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS=['userDomain',a126_0x125e28(0x128),a126_0x125e28(0x11a),'skillDomain'];
|
package/lib/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4a3a15,_0xac8de1){const _0x1180d7=a127_0x193e,_0x326b83=_0x4a3a15();while(!![]){try{const _0x32a739=-parseInt(_0x1180d7(0x17a))/0x1+parseInt(_0x1180d7(0x17c))/0x2+parseInt(_0x1180d7(0x173))/0x3*(-parseInt(_0x1180d7(0x179))/0x4)+parseInt(_0x1180d7(0x174))/0x5*(-parseInt(_0x1180d7(0x178))/0x6)+-parseInt(_0x1180d7(0x177))/0x7+parseInt(_0x1180d7(0x17b))/0x8+-parseInt(_0x1180d7(0x175))/0x9*(-parseInt(_0x1180d7(0x172))/0xa);if(_0x32a739===_0xac8de1)break;else _0x326b83['push'](_0x326b83['shift']());}catch(_0x5e15e0){_0x326b83['push'](_0x326b83['shift']());}}}(a127_0x2fe3,0xc0cb9));import{jsx as a127_0x1917fd,jsxs as a127_0x593da0}from'react/jsx-runtime';import{useEffect}from'react';import{Box,Text,useApp}from'ink';function a127_0x2fe3(){const _0x4f3a1b=['6CqZLLr','4dgDEUF','179471azTBkd','3047568wYWVWg','338286QHzixf','green','\x20--help','\x20to\x20view\x20available\x20commands.','3088130fcDcXg','2936589tKELjQ','705785StZWvN','72MJBdZv','\x20\x20Use\x20','6519891mZdPpT'];a127_0x2fe3=function(){return _0x4f3a1b;};return a127_0x2fe3();}function a127_0x193e(_0x3084f9,_0x45bf0c){_0x3084f9=_0x3084f9-0x171;const _0x2fe39d=a127_0x2fe3();let _0x193e10=_0x2fe39d[_0x3084f9];return _0x193e10;}import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function Help(){const _0x326257=a127_0x193e,{exit:_0x5c70e2}=useApp();return useEffect(()=>{_0x5c70e2();},[_0x5c70e2]),a127_0x593da0(Box,{'flexDirection':'column','marginTop':0x1,'marginBottom':0x1,'children':[a127_0x1917fd(Box,{'children':a127_0x1917fd(Text,{'bold':!![],'color':_0x326257(0x17d),'children':'\x20\x20'+CLI_DISPLAY_NAME})}),a127_0x593da0(Box,{'marginTop':0x1,'children':[a127_0x1917fd(Text,{'dimColor':!![],'children':_0x326257(0x176)}),a127_0x1917fd(Text,{'bold':!![],'color':_0x326257(0x17d),'children':CLI_BIN_NAME+_0x326257(0x17e)}),a127_0x1917fd(Text,{'dimColor':!![],'children':_0x326257(0x171)})]})]});}
|
package/lib/postinstall.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a128_0x1cb9(_0x320068,_0x7486f6){_0x320068=_0x320068-0x175;const _0x105c1e=a128_0x105c();let _0x1cb93f=_0x105c1e[_0x320068];return _0x1cb93f;}(function(_0x3736ad,_0x58be7c){const _0x5b9ce7=a128_0x1cb9,_0x33c1ba=_0x3736ad();while(!![]){try{const _0x4d7a46=-parseInt(_0x5b9ce7(0x184))/0x1+parseInt(_0x5b9ce7(0x17a))/0x2+parseInt(_0x5b9ce7(0x17b))/0x3*(-parseInt(_0x5b9ce7(0x186))/0x4)+parseInt(_0x5b9ce7(0x17f))/0x5+-parseInt(_0x5b9ce7(0x17d))/0x6+parseInt(_0x5b9ce7(0x181))/0x7+-parseInt(_0x5b9ce7(0x178))/0x8;if(_0x4d7a46===_0x58be7c)break;else _0x33c1ba['push'](_0x33c1ba['shift']());}catch(_0x597a1e){_0x33c1ba['push'](_0x33c1ba['shift']());}}}(a128_0x105c,0xc1029));import{installBuiltinSkill}from'./skills/builtin-skill.js';function a128_0x105c(){const _0x1a5439=['log','2847536jKYuvk','3eoSJaL','Installation\x20failed','3811338KQwiLk','[BUILTIN_SKILL_INSTALL_','6333470YvdQZD','changed','4979051VMNiTH','FAILED','Repair\x20with:\x20','772157egcLHI','installedPath','2269892SJKZoK','\x20at\x20','code','warn','already\x20current','installed','5090664CBKvlI'];a128_0x105c=function(){return _0x1a5439;};return a128_0x105c();}export async function runPostinstall(_0x23674a={}){const _0x41f673=a128_0x1cb9,_0x422ff1=installBuiltinSkill(_0x23674a);if(_0x422ff1['ok']){const _0x5db3ff=_0x422ff1[_0x41f673(0x180)]?_0x41f673(0x177):_0x41f673(0x176),_0x51eb36=_0x422ff1[_0x41f673(0x185)]?_0x41f673(0x187)+_0x422ff1['installedPath']:'\x20via\x20skills@latest';return console[_0x41f673(0x179)]('Lovrabet\x20Built-in\x20Skill\x20'+_0x422ff1['skillVersion']+'\x20'+_0x5db3ff+_0x51eb36),_0x422ff1;}const _0xc1ae59=_0x41f673(0x17e)+(_0x422ff1[_0x41f673(0x188)]??_0x41f673(0x182))+']\x20'+(_0x422ff1['error']??_0x41f673(0x17c))+'.\x20'+(_0x41f673(0x183)+_0x422ff1['repairCommand']);if(_0x422ff1['code']==='SOURCE_INVALID')throw new Error(_0xc1ae59);return console[_0x41f673(0x175)](_0xc1ae59),_0x422ff1;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x582146,_0x37164f){const _0x180c2e=a129_0x5b2e,_0x4f07e2=_0x582146();while(!![]){try{const _0xee94c9=parseInt(_0x180c2e(0x15b))/0x1*(-parseInt(_0x180c2e(0x15d))/0x2)+parseInt(_0x180c2e(0x15a))/0x3+parseInt(_0x180c2e(0x168))/0x4*(parseInt(_0x180c2e(0x15c))/0x5)+parseInt(_0x180c2e(0x157))/0x6*(-parseInt(_0x180c2e(0x15f))/0x7)+-parseInt(_0x180c2e(0x169))/0x8*(parseInt(_0x180c2e(0x166))/0x9)+-parseInt(_0x180c2e(0x167))/0xa+parseInt(_0x180c2e(0x16a))/0xb;if(_0xee94c9===_0x37164f)break;else _0x4f07e2['push'](_0x4f07e2['shift']());}catch(_0x48011b){_0x4f07e2['push'](_0x4f07e2['shift']());}}}(a129_0x402d,0xa7c09));function a129_0x402d(){const _0x156ad7=['14836efovSR','8sQhmxv','8692992qBKCGv','string','2124FPdvbs','slice','write','3075237KoQTaW','1lKQMsR','1835PrlyWL','87914ZOgpUZ','replace','13258ZEBTsx','trim','Lovrabet\x20confirmation\x20requires\x20a\x20write\x20command.','Run\x20this\x20write\x20operation','risk','high-risk-write','description','7502697vNEooS','9413750UcjGUt'];a129_0x402d=function(){return _0x156ad7;};return a129_0x402d();}const DESCRIPTION_MAX_LENGTH=0x1f4;export function buildLovrabetConfirmationRequest(_0xd1e834,_0x55991d,_0x34f643){const _0x4d00db=a129_0x5b2e,_0x43f2fe=normalizeText(_0xd1e834['confirmationDescription'],DESCRIPTION_MAX_LENGTH),_0x365648=normalizeText(_0xd1e834[_0x4d00db(0x165)],DESCRIPTION_MAX_LENGTH);return{'operation':_0x55991d,'risk':requireWriteRisk(_0xd1e834),'description':_0x43f2fe||_0x365648||_0x4d00db(0x162),..._0x34f643?{'signal':_0x34f643}:{}};}function a129_0x5b2e(_0x54c127,_0x2c4e7e){_0x54c127=_0x54c127-0x156;const _0x402de4=a129_0x402d();let _0x5b2e50=_0x402de4[_0x54c127];return _0x5b2e50;}function requireWriteRisk(_0x689067){const _0x103f54=a129_0x5b2e;if(_0x689067[_0x103f54(0x163)]===_0x103f54(0x159)||_0x689067['risk']===_0x103f54(0x164))return _0x689067[_0x103f54(0x163)];throw new Error(_0x103f54(0x161));}function normalizeText(_0x87dc98,_0x34d3a0){const _0x2df538=a129_0x5b2e;if(typeof _0x87dc98!==_0x2df538(0x156))return'';return _0x87dc98['replace'](/[\u0000-\u001f\u007f]+/g,'\x20')[_0x2df538(0x15e)](/\s+/g,'\x20')[_0x2df538(0x160)]()[_0x2df538(0x158)](0x0,_0x34d3a0);}
|
package/lib/runtime/event.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a130_0x2779(_0x18862a,_0x40aac6){_0x18862a=_0x18862a-0x14b;const _0x5aa89b=a130_0x5aa8();let _0x27790e=_0x5aa89b[_0x18862a];return _0x27790e;}function a130_0x5aa8(){const _0x5a3148=['22VSDwBX','2221668xQmRqe','1633434QBZwIm','risk','write','24OErYEm','1179abBtWQ','2Lwbwtt','62380XqhpAy','406164NFgDCa','29155VzrkoH','split','lovrabet.write.completed','34340NeMsXG','5107sQxDgE','writeEventSubject','filter','56aNgQAc','trim'];a130_0x5aa8=function(){return _0x5a3148;};return a130_0x5aa8();}(function(_0x260542,_0x239cc0){const _0x1fe0fb=a130_0x2779,_0x2364e2=_0x260542();while(!![]){try{const _0xe55c86=parseInt(_0x1fe0fb(0x152))/0x1*(parseInt(_0x1fe0fb(0x14b))/0x2)+-parseInt(_0x1fe0fb(0x159))/0x3+parseInt(_0x1fe0fb(0x14d))/0x4+-parseInt(_0x1fe0fb(0x14c))/0x5*(parseInt(_0x1fe0fb(0x15c))/0x6)+parseInt(_0x1fe0fb(0x14e))/0x7*(-parseInt(_0x1fe0fb(0x155))/0x8)+-parseInt(_0x1fe0fb(0x15d))/0x9*(-parseInt(_0x1fe0fb(0x151))/0xa)+parseInt(_0x1fe0fb(0x157))/0xb*(parseInt(_0x1fe0fb(0x158))/0xc);if(_0xe55c86===_0x239cc0)break;else _0x2364e2['push'](_0x2364e2['shift']());}catch(_0x321ce6){_0x2364e2['push'](_0x2364e2['shift']());}}}(a130_0x5aa8,0x4a08b));export function canonicalLovrabetOperation(_0x27240b){const _0x2b304c=a130_0x2779;return[_0x27240b['service'],..._0x27240b['command'][_0x2b304c(0x156)]()[_0x2b304c(0x14f)](/\s+/)][_0x2b304c(0x154)](Boolean)['join']('.');}export function createLovrabetWriteMetadata(_0x1b87f9,_0x47024c,_0x4b7be0,_0x4cafa5){const _0xfd4e58=a130_0x2779;if(_0x4cafa5||_0x4b7be0['ok']!==!![]||_0x1b87f9['risk']!==_0xfd4e58(0x15b)&&_0x1b87f9[_0xfd4e58(0x15a)]!=='high-risk-write')return undefined;const _0x14ff10=_0x1b87f9[_0xfd4e58(0x153)]?.(_0x4b7be0),_0x231365={'type':_0xfd4e58(0x150),'operation':_0x47024c,'risk':_0x1b87f9[_0xfd4e58(0x15a)],..._0x14ff10?{'subject':_0x14ff10}:{}};return{'lovrabet':{'schemaVersion':0x1,'event':_0x231365}};}
|
package/lib/runtime/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4c0dce,_0x10fbea){const _0x49fd17=a131_0x5261,_0x57073e=_0x4c0dce();while(!![]){try{const _0x4909fd=-parseInt(_0x49fd17(0x139))/0x1*(parseInt(_0x49fd17(0x13d))/0x2)+-parseInt(_0x49fd17(0x140))/0x3+parseInt(_0x49fd17(0x12f))/0x4+parseInt(_0x49fd17(0x148))/0x5*(-parseInt(_0x49fd17(0x135))/0x6)+parseInt(_0x49fd17(0x134))/0x7*(parseInt(_0x49fd17(0x13b))/0x8)+-parseInt(_0x49fd17(0x133))/0x9*(-parseInt(_0x49fd17(0x12c))/0xa)+parseInt(_0x49fd17(0x13a))/0xb;if(_0x4909fd===_0x10fbea)break;else _0x57073e['push'](_0x57073e['shift']());}catch(_0x422cf5){_0x57073e['push'](_0x57073e['shift']());}}}(a131_0x3de6,0xa2403));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';function a131_0x3de6(){const _0x298d8a=['write','confirm','high-risk-write','rawFlags','args','5WIgaDx','definition','AbortError','message','reason','aborted','risk','dry-run','1484970HpoROu','result','format','2433648kmqoMc','confirmation','Embedded\x20Lovrabet\x20confirmation\x20must\x20run\x20inside\x20execute.','dryRun','9JfBhtZ','7WxNWZH','6131868rHgjgB','Lovrabet\x20invocation\x20aborted.','stringify','Lovrabet\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.','1616zRVqnu','17011940OiKcxh','7816808voHEGL','command','538nWgCcL','present','execute','3477867NZnzcy','data','signal'];a131_0x3de6=function(){return _0x298d8a;};return a131_0x3de6();}import{runSerialized}from'../runtime/queue.js';const defaultPresentation={'present'({result:_0x5894fc,command:_0x10504d,risk:_0x358c65,dryRun:_0x2fe4bf}){const _0x455e9b=a131_0x5261;return JSON[_0x455e9b(0x137)]({'ok':_0x5894fc['ok'],'command':_0x10504d,'risk':_0x358c65,..._0x2fe4bf?{'dryRun':!![]}:{},..._0x5894fc[_0x455e9b(0x141)]!==undefined?{'data':_0x5894fc[_0x455e9b(0x141)]}:{},..._0x5894fc[_0x455e9b(0x14b)]?{'message':_0x5894fc[_0x455e9b(0x14b)]}:{}});}};export async function invokeLovrabet(_0x55f366,_0x384510){const _0x4f4496=a131_0x5261;throwIfAborted(_0x384510['signal']);const _0x12a491=await resolveLovrabetInvocation(_0x55f366),_0x10d382=canonicalLovrabetOperation(_0x12a491[_0x4f4496(0x149)]);return await confirmWriteBeforeQueue(_0x12a491[_0x4f4496(0x149)],_0x12a491[_0x4f4496(0x146)],_0x10d382,_0x384510),runSerialized(async()=>{const _0x9dfd63=_0x4f4496;throwIfAborted(_0x384510[_0x9dfd63(0x142)]);const _0x5a6756={},_0x44b5b2=buildConfigFromFlags(_0x12a491[_0x9dfd63(0x146)]);await initGlobalEnvironment(_0x44b5b2);const _0xa199f3=createPipelineEnv(_0x44b5b2,{..._0x12a491[_0x9dfd63(0x146)],'yes':_0x12a491['definition'][_0x9dfd63(0x12a)]===_0x9dfd63(0x145)?!![]:_0x12a491['rawFlags']['yes'],'nonInteractive':!![]});_0xa199f3[_0x9dfd63(0x147)]=_0x12a491[_0x9dfd63(0x147)],_0xa199f3['isNonInteractive']=!![],_0xa199f3['riskLevel']=_0x9dfd63(0x145);const _0x1a9450=withAbortSignal(_0x12a491[_0x9dfd63(0x149)],_0x384510[_0x9dfd63(0x142)]),_0xe80a84=createLovrabetRunnerAdapter({'formatOutput'(_0x1ed3c4,_0xa5c285){const _0x5a7305=_0x9dfd63;_0x5a6756[_0x5a7305(0x12d)]=_0x1ed3c4,_0x5a6756['command']=_0xa5c285['command'],_0x5a6756[_0x5a7305(0x12a)]=_0xa5c285[_0x5a7305(0x12a)],_0x5a6756[_0x5a7305(0x12e)]=_0xa5c285[_0x5a7305(0x12e)],_0x5a6756[_0x5a7305(0x132)]=_0xa5c285['dryRun']===!![];},async 'confirmHighRisk'(){const _0x35cd7b=_0x9dfd63;throw new Error(_0x35cd7b(0x131));}});try{await runCommand(_0x1a9450,_0xa199f3,_0xe80a84);if(!_0x5a6756[_0x9dfd63(0x12d)]||!_0x5a6756[_0x9dfd63(0x13c)]||!_0x5a6756[_0x9dfd63(0x12a)]||!_0x5a6756['format'])throw new Error(_0x9dfd63(0x138));const _0x1a17d2=_0x384510['presentation']??defaultPresentation,_0x43fba3=_0x5a6756[_0x9dfd63(0x132)]===!![],_0x53f565={'result':_0x5a6756[_0x9dfd63(0x12d)],'command':_0x5a6756[_0x9dfd63(0x13c)],'operation':_0x10d382,'risk':_0x5a6756[_0x9dfd63(0x12a)],'format':_0x5a6756[_0x9dfd63(0x12e)],'dryRun':_0x43fba3},_0x3ac95e=createLovrabetWriteMetadata(_0x12a491[_0x9dfd63(0x149)],_0x10d382,_0x5a6756[_0x9dfd63(0x12d)],_0x43fba3);let _0x41a8a4;try{_0x41a8a4=await _0x1a17d2[_0x9dfd63(0x13e)](_0x53f565);}catch(_0x5a680b){if(!_0x3ac95e||_0x1a17d2===defaultPresentation)throw _0x5a680b;_0x41a8a4=await defaultPresentation[_0x9dfd63(0x13e)](_0x53f565);}return{'operation':_0x10d382,'risk':_0x5a6756[_0x9dfd63(0x12a)],'mode':_0x43fba3?_0x9dfd63(0x12b):_0x9dfd63(0x13f),'result':_0x5a6756['result'],'output':_0x41a8a4,..._0x3ac95e?{'metadata':_0x3ac95e}:{}};}finally{await finalizeLovrabetRuntimeState();}});}async function confirmWriteBeforeQueue(_0x3e0c07,_0x498f0e,_0xfddbca,_0x3b7cc9){const _0x4fa986=a131_0x5261;if(_0x498f0e[_0x4fa986(0x132)]===!![]||_0x3e0c07[_0x4fa986(0x12a)]!==_0x4fa986(0x143)&&_0x3e0c07[_0x4fa986(0x12a)]!==_0x4fa986(0x145))return;await _0x3b7cc9[_0x4fa986(0x130)][_0x4fa986(0x144)](buildLovrabetConfirmationRequest(_0x3e0c07,_0xfddbca,_0x3b7cc9[_0x4fa986(0x142)]));}function a131_0x5261(_0x19a353,_0x580f88){_0x19a353=_0x19a353-0x12a;const _0x3de6af=a131_0x3de6();let _0x526168=_0x3de6af[_0x19a353];return _0x526168;}function withAbortSignal(_0xcfd3d2,_0x3e0866){return{..._0xcfd3d2,async 'execute'(_0x20fd53){return throwIfAborted(_0x3e0866),_0xcfd3d2['execute']({..._0x20fd53,'signal':_0x3e0866});}};}function throwIfAborted(_0xbef315){const _0x592bd8=a131_0x5261;if(_0xbef315?.[_0x592bd8(0x14d)])throw _0xbef315['reason']instanceof Error?_0xbef315[_0x592bd8(0x14c)]:new DOMException(_0x592bd8(0x136),_0x592bd8(0x14a));}
|
package/lib/runtime/queue.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4946dc,_0x2cb1c0){const _0x106d81=a132_0x5e0f,_0x4616ae=_0x4946dc();while(!![]){try{const _0x720d6a=parseInt(_0x106d81(0x153))/0x1*(-parseInt(_0x106d81(0x14f))/0x2)+parseInt(_0x106d81(0x14b))/0x3+-parseInt(_0x106d81(0x14e))/0x4*(-parseInt(_0x106d81(0x152))/0x5)+-parseInt(_0x106d81(0x14c))/0x6*(parseInt(_0x106d81(0x149))/0x7)+-parseInt(_0x106d81(0x148))/0x8*(parseInt(_0x106d81(0x14d))/0x9)+parseInt(_0x106d81(0x150))/0xa+parseInt(_0x106d81(0x151))/0xb;if(_0x720d6a===_0x2cb1c0)break;else _0x4616ae['push'](_0x4616ae['shift']());}catch(_0xcfdfe5){_0x4616ae['push'](_0x4616ae['shift']());}}}(a132_0x184f,0xa994c));function a132_0x184f(){const _0x4964d1=['72NSHEva','49khdeJx','catch','857439TFDdGu','193038XBmsBO','1267371NZDyyL','4HPlVmP','1036YlLBdB','7445590GiepjQ','23522367oeyqDI','357555gbGCbI','2033PfFZpg'];a132_0x184f=function(){return _0x4964d1;};return a132_0x184f();}let tail=Promise['resolve']();function a132_0x5e0f(_0x2b99e3,_0x132221){_0x2b99e3=_0x2b99e3-0x148;const _0x184f92=a132_0x184f();let _0x5e0f0a=_0x184f92[_0x2b99e3];return _0x5e0f0a;}export async function runSerialized(_0x247f67){const _0x34e879=a132_0x5e0f,_0x22a8d1=tail;let _0xfe6279;tail=new Promise(_0x4d23ff=>{_0xfe6279=_0x4d23ff;}),await _0x22a8d1[_0x34e879(0x14a)](()=>undefined);try{return await _0x247f67();}finally{_0xfe6279();}}
|
package/lib/runtime/resolve.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3afe87,_0x52aad2){const _0x51cd7a=a133_0x13ea,_0x296f62=_0x3afe87();while(!![]){try{const _0x26814a=parseInt(_0x51cd7a(0x160))/0x1*(parseInt(_0x51cd7a(0x152))/0x2)+parseInt(_0x51cd7a(0x14f))/0x3+parseInt(_0x51cd7a(0x150))/0x4+-parseInt(_0x51cd7a(0x15c))/0x5*(-parseInt(_0x51cd7a(0x157))/0x6)+-parseInt(_0x51cd7a(0x156))/0x7+parseInt(_0x51cd7a(0x164))/0x8+-parseInt(_0x51cd7a(0x15e))/0x9*(parseInt(_0x51cd7a(0x15a))/0xa);if(_0x26814a===_0x52aad2)break;else _0x296f62['push'](_0x296f62['shift']());}catch(_0x175494){_0x296f62['push'](_0x296f62['shift']());}}}(a133_0x3650,0x9aa12));function a133_0x13ea(_0x279dda,_0x330136){_0x279dda=_0x279dda-0x14f;const _0x365066=a133_0x3650();let _0x13ea21=_0x365066[_0x279dda];return _0x13ea21;}import a133_0x228bed from'meow';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(_0x45a70f){const _0x240354=a133_0x13ea,_0x3990b0=a133_0x228bed('',{'importMeta':import.meta,'argv':_0x45a70f,'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x36f1a1=[..._0x3990b0[_0x240354(0x151)]],_0x557321=_0x3990b0[_0x240354(0x166)];await correctFlags(_0x557321);const _0x413d87=_0x36f1a1[0x0];if(!_0x413d87)throw CliErrors['validation'](_0x240354(0x162));const _0x29b67a=resolveRemovedCommand(_0x413d87,_0x36f1a1[0x1]);if(_0x29b67a)throw CliErrors[_0x240354(0x154)](_0x29b67a[_0x240354(0x15b)],_0x29b67a[_0x240354(0x165)]);if(!isKnownService(_0x413d87)){const _0x1e326c=resolveDynamicServiceCommand(_0x36f1a1,_0x557321);if(!_0x1e326c)throw CliErrors[_0x240354(0x158)](_0x36f1a1['join']('\x20'));return Object[_0x240354(0x15f)](_0x557321,_0x1e326c[_0x240354(0x166)]),{'definition':_0x1e326c[_0x240354(0x161)],'rawFlags':_0x557321,'args':_0x1e326c[_0x240354(0x153)]};}const _0x236851=getServiceEntry(_0x413d87),_0x591ab6=_0x36f1a1[0x1]||_0x236851['defaultCommand'];if(!_0x591ab6)throw CliErrors['validation'](_0x240354(0x15d)+_0x413d87+'\x22.');const _0x31c128=findDefinition(_0x413d87,_0x591ab6);if(!_0x31c128)throw CliErrors[_0x240354(0x158)](_0x413d87+'\x20'+_0x591ab6);return{'definition':_0x31c128,'rawFlags':_0x557321,'args':_0x36f1a1['slice'](0x2)};}async function correctFlags(_0x185f11){const _0x3efda7=a133_0x13ea;try{const {correctFlags:_0x797ce1}=await import(_0x3efda7(0x159)),{getAllDefinitions:_0x1e9cef}=await import(_0x3efda7(0x163)),_0x47504e=_0x1e9cef()[_0x3efda7(0x155)](_0x468afc=>_0x468afc['flags']??[]),_0x5c6f95=_0x797ce1(_0x185f11,_0x47504e);Object['assign'](_0x185f11,_0x5c6f95['flags']);}catch{}}function a133_0x3650(){const _0x4df8d9=['unknownCommand','../framework/preparse.js','3267650eGZOTs','message','80rtZxvR','Lovrabet\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22','36dvTQHk','assign','59253FImPOH','definition','Lovrabet\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.','../commands/registry.js','7034920HVuqem','hint','flags','824601jpTKHv','742540hhPABh','input','38Rbljxq','args','validation','flatMap','7743260rvUkoO','217848QJALWV'];a133_0x3650=function(){return _0x4df8d9;};return a133_0x3650();}
|