@lovrabet/lovrabet-cli 2.3.0-beta.5 → 2.3.0
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.d.ts +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.d.ts +2 -0
- package/lib/context.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/sdk-client.js +1 -1
- package/lib/errors.d.ts +1 -0
- 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.d.ts +9 -7
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/service-order.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/help.js +1 -1
- package/lib/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/platform.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
- package/skills/lovrabet/SKILL.md +1 -1
- package/skills/lovrabet.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x298573,_0x38daed){const _0x77757a=a113_0x5590,_0x34677b=_0x298573();while(!![]){try{const _0x172aa7=parseInt(_0x77757a(0x70))/0x1*(-parseInt(_0x77757a(0x7b))/0x2)+-parseInt(_0x77757a(0x8e))/0x3+parseInt(_0x77757a(0x83))/0x4+parseInt(_0x77757a(0x84))/0x5+parseInt(_0x77757a(0x85))/0x6*(parseInt(_0x77757a(0x6f))/0x7)+parseInt(_0x77757a(0x81))/0x8+-parseInt(_0x77757a(0x86))/0x9;if(_0x172aa7===_0x38daed)break;else _0x34677b['push'](_0x34677b['shift']());}catch(_0x48c3cd){_0x34677b['push'](_0x34677b['shift']());}}}(a113_0x5154,0x4106d));function a113_0x5154(){const _0x1d4823=['toUpperCase','add','alias','105uugRgo','206741bmjruS','entries','toLowerCase','type','indexOf','slice','format','corrected','length','sticky','replace','4VWpwbt','global','set','nonInteractive','get','original','598224yBNmqK','appcode','1949972tEZCqO','2599265hSmNuC','54234WJQdCF','1641231uYcEMb','number','app','keys','push','dryRun','version','non-interactive','1066557QSiSvi','env','has','name'];a113_0x5154=function(){return _0x1d4823;};return a113_0x5154();}export function toKebab(_0x4603c0){const _0x5dffdc=a113_0x5590;return _0x4603c0[_0x5dffdc(0x7a)](/_/g,'-')[_0x5dffdc(0x7a)](/-([A-Z]+)/g,(_0x3e5035,_0x3d3c3a)=>'-'+_0x3d3c3a[_0x5dffdc(0x72)]())[_0x5dffdc(0x7a)](/([a-z0-9])([A-Z])/g,(_0x49bbf5,_0xb7991b,_0xb015fd)=>_0xb7991b+'-'+_0xb015fd)[_0x5dffdc(0x72)]();}function buildKnownFlags(_0x2c5500){const _0x557e61=a113_0x5590,_0x398119=new Set();for(const _0x1cae1f of _0x2c5500){_0x398119['add'](_0x1cae1f[_0x557e61(0x91)]),_0x398119[_0x557e61(0x6d)](toCamelCase(_0x1cae1f[_0x557e61(0x91)]));}for(const _0x57ae4a of['dry-run',_0x557e61(0x8b),'yes',_0x557e61(0x76)]){_0x398119[_0x557e61(0x6d)](_0x57ae4a);}for(const _0x891c81 of['help',_0x557e61(0x8f),_0x557e61(0x82),_0x557e61(0x88),_0x557e61(0x7e),_0x557e61(0x8d),'ci',_0x557e61(0x7c),_0x557e61(0x8c)]){_0x398119[_0x557e61(0x6d)](_0x891c81);}return _0x398119;}function buildFlagTypeMap(_0x204050){const _0x1452e8=a113_0x5590,_0x2f3746=new Map();for(const _0x486a4a of _0x204050){_0x2f3746[_0x1452e8(0x7d)](_0x486a4a[_0x1452e8(0x91)],_0x486a4a[_0x1452e8(0x73)]),_0x2f3746[_0x1452e8(0x7d)](toCamelCase(_0x486a4a[_0x1452e8(0x91)]),_0x486a4a[_0x1452e8(0x73)]);}return _0x2f3746;}function a113_0x5590(_0x4a7035,_0x172310){_0x4a7035=_0x4a7035-0x6d;const _0x515459=a113_0x5154();let _0x5590ea=_0x515459[_0x4a7035];return _0x5590ea;}function toCamelCase(_0x42812c){const _0x5e9102=a113_0x5590;return _0x42812c[_0x5e9102(0x7a)](/-([a-z])/g,(_0x32b8e0,_0x1ca0f3)=>_0x1ca0f3[_0x5e9102(0x92)]());}function aliasHandler(_0x315730,_0x7f2be1){const _0x55c561=a113_0x5590,_0x124ac9=[];for(const _0x413812 of Object[_0x55c561(0x89)](_0x315730)){if(_0x7f2be1[_0x55c561(0x90)](_0x413812))continue;const _0x3121df=toKebab(_0x413812);_0x3121df!==_0x413812&&_0x7f2be1['has'](_0x3121df)&&_0x124ac9[_0x55c561(0x8a)]({'original':_0x413812,'corrected':_0x3121df,'handler':_0x55c561(0x6e)});}return _0x124ac9;}function stickyHandler(_0x1d30df,_0x4bb980,_0x22acc8){const _0x31a7f5=a113_0x5590,_0x423bf6=[];for(const [_0x2bdc68,_0x1cb60d]of Object[_0x31a7f5(0x71)](_0x1d30df)){if(_0x1cb60d!==!![])continue;for(let _0x530e02=_0x2bdc68[_0x31a7f5(0x78)]-0x1;_0x530e02>0x0;_0x530e02--){const _0x4682b2=_0x2bdc68['slice'](0x0,_0x530e02),_0x357704=_0x2bdc68[_0x31a7f5(0x75)](_0x530e02),_0x4ffa75=toKebab(_0x4682b2),_0x1e395c=toCamelCase(_0x4682b2),_0x3b69c8=_0x4bb980[_0x31a7f5(0x90)](_0x4682b2)?_0x4682b2:_0x4bb980[_0x31a7f5(0x90)](_0x4ffa75)?_0x4ffa75:_0x4bb980[_0x31a7f5(0x90)](_0x1e395c)?_0x1e395c:null;if(!_0x3b69c8)continue;const _0x4fe936=_0x22acc8[_0x31a7f5(0x7f)](_0x3b69c8)??'string';let _0x3052dc;if(_0x4fe936===_0x31a7f5(0x87)){const _0x5140b7=Number(_0x357704);if(isNaN(_0x5140b7)||_0x357704==='')continue;_0x3052dc=_0x5140b7;}else{if(_0x4fe936==='boolean')continue;else{if(_0x357704==='')continue;_0x3052dc=_0x357704;}}_0x423bf6[_0x31a7f5(0x8a)]({'original':_0x2bdc68,'corrected':_0x3b69c8+'='+_0x3052dc,'handler':_0x31a7f5(0x79)});break;}}return _0x423bf6;}export function correctFlags(_0x3a1990,_0xf3fa70){const _0x51ca9=a113_0x5590,_0x54510a=buildKnownFlags(_0xf3fa70),_0x368469=buildFlagTypeMap(_0xf3fa70),_0x4e3566=aliasHandler(_0x3a1990,_0x54510a),_0x51c8a5=stickyHandler(_0x3a1990,_0x54510a,_0x368469),_0x5372fc=[..._0x4e3566,..._0x51c8a5];if(_0x5372fc[_0x51ca9(0x78)]===0x0)return{'flags':_0x3a1990,'corrections':[]};const _0x4150b1={..._0x3a1990},_0xb8ebf2=new Set();for(const _0x340cbf of _0x4e3566){_0x4150b1[_0x340cbf[_0x51ca9(0x77)]]=_0x3a1990[_0x340cbf[_0x51ca9(0x80)]],_0xb8ebf2[_0x51ca9(0x6d)](_0x340cbf[_0x51ca9(0x80)]);}for(const _0x2e58f1 of _0x51c8a5){const _0x19ceac=_0x2e58f1['corrected'][_0x51ca9(0x74)]('='),_0x372623=_0x2e58f1[_0x51ca9(0x77)][_0x51ca9(0x75)](0x0,_0x19ceac),_0x309ec5=_0x2e58f1[_0x51ca9(0x77)][_0x51ca9(0x75)](_0x19ceac+0x1),_0x167fdc=_0x368469['get'](_0x372623)??'string';_0x167fdc===_0x51ca9(0x87)?_0x4150b1[_0x372623]=Number(_0x309ec5):_0x4150b1[_0x372623]=_0x309ec5,_0xb8ebf2[_0x51ca9(0x6d)](_0x2e58f1[_0x51ca9(0x80)]);}for(const _0x4d9ab8 of _0xb8ebf2){delete _0x4150b1[_0x4d9ab8];}return{'flags':_0x4150b1,'corrections':_0x5372fc};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a114_0x1c2f2b=a114_0x2e86;(function(_0x32860b,_0x274872){const _0x20b53f=a114_0x2e86,_0x2e5687=_0x32860b();while(!![]){try{const _0x56a49a=-parseInt(_0x20b53f(0x1a3))/0x1*(-parseInt(_0x20b53f(0x1a8))/0x2)+parseInt(_0x20b53f(0x1a0))/0x3+-parseInt(_0x20b53f(0x1ba))/0x4+parseInt(_0x20b53f(0x1a4))/0x5*(parseInt(_0x20b53f(0x1c2))/0x6)+parseInt(_0x20b53f(0x1b0))/0x7+parseInt(_0x20b53f(0x1b8))/0x8+-parseInt(_0x20b53f(0x1ac))/0x9;if(_0x56a49a===_0x274872)break;else _0x2e5687['push'](_0x2e5687['shift']());}catch(_0x44f5c7){_0x2e5687['push'](_0x2e5687['shift']());}}}(a114_0x1d4c,0xc69e6));import{CliErrors}from'../errors.js';const RATE_LIMIT_ERROR_CODES=new Set([a114_0x1c2f2b(0x1b4),'MAX_QPS_LIMIT',a114_0x1c2f2b(0x1a1)]);function a114_0x1d4c(){const _0x2e2ec4=['string','retryAfter','EXCEED_MAX_QPS_LIMIT','number','function','\x20seconds\x20before\x20retrying.','3751264xLYKoh','toUpperCase','4071568AAAtKN','has','trim','call','entries','toLowerCase','isInteger','rateLimited','6iwZFDj','3159132dIuGtn','IP_RATE_LIMIT_EXCEEDED','Retry\x20after\x20a\x20short\x20delay.','662379OsssFa','1678235eGUBJO','Request\x20rate\x20limit\x20exceeded.','object','\x20Retry\x20only\x20the\x20failed\x20item;\x20keep\x20requests\x20serial\x20and\x20preserve\x20completed\x20checkpoints.','2zlgdLP','test','status','retry-after','8031798eSQAnw','get','errorCode','message','1427146XmckdF','Retry-After'];a114_0x1d4c=function(){return _0x2e2ec4;};return a114_0x1d4c();}function a114_0x2e86(_0x4727d3,_0x322798){_0x4727d3=_0x4727d3-0x1a0;const _0x1d4caf=a114_0x1d4c();let _0x2e8680=_0x1d4caf[_0x4727d3];return _0x2e8680;}function nonEmptyString(_0x51665e){const _0x49bdf9=a114_0x1c2f2b;if(typeof _0x51665e!==_0x49bdf9(0x1b2))return undefined;const _0x304107=_0x51665e[_0x49bdf9(0x1bc)]();return _0x304107||undefined;}function buildRetryHint(_0x5ce15e){const _0x3b8dd7=a114_0x1c2f2b,_0x5457f3=nonEmptyString(_0x5ce15e),_0x492789=_0x5457f3?/^\d+$/[_0x3b8dd7(0x1a9)](_0x5457f3)?'Wait\x20'+_0x5457f3+_0x3b8dd7(0x1b7):'Retry\x20after\x20'+_0x5457f3+'.':_0x3b8dd7(0x1a2);return _0x492789+_0x3b8dd7(0x1a7);}export function createRateLimitError(_0x41c835){const _0x3edb29=a114_0x1c2f2b,_0x58f8a5=nonEmptyString(_0x41c835[_0x3edb29(0x1ae)])?.[_0x3edb29(0x1b9)](),_0x53a6e0=Number(_0x41c835[_0x3edb29(0x1aa)])===0x1ad||_0x58f8a5!==undefined&&RATE_LIMIT_ERROR_CODES[_0x3edb29(0x1bb)](_0x58f8a5);if(!_0x53a6e0)return undefined;return CliErrors[_0x3edb29(0x1c1)](nonEmptyString(_0x41c835[_0x3edb29(0x1af)])??_0x3edb29(0x1a5),buildRetryHint(_0x41c835[_0x3edb29(0x1b3)]));}export function readRetryAfter(_0x146fe1){const _0x135432=a114_0x1c2f2b;if(!_0x146fe1||typeof _0x146fe1!==_0x135432(0x1a6))return undefined;const _0x40046f=_0x146fe1[_0x135432(0x1ad)];if(typeof _0x40046f===_0x135432(0x1b6)){const _0x3c8187=_0x40046f[_0x135432(0x1bd)](_0x146fe1,_0x135432(0x1b1))??_0x40046f[_0x135432(0x1bd)](_0x146fe1,_0x135432(0x1ab));return nonEmptyString(_0x3c8187);}for(const [_0x265b06,_0x109e64]of Object[_0x135432(0x1be)](_0x146fe1)){if(_0x265b06[_0x135432(0x1bf)]()===_0x135432(0x1ab))return nonEmptyString(_0x109e64)??(typeof _0x109e64===_0x135432(0x1b5)?String(_0x109e64):undefined);}return undefined;}export function readRetryAfterSeconds(_0x40e98a){const _0x185495=a114_0x1c2f2b;if(!_0x40e98a||typeof _0x40e98a!=='object'||Array['isArray'](_0x40e98a))return undefined;const _0x293ee4=_0x40e98a['retryAfterSeconds'];if(typeof _0x293ee4===_0x185495(0x1b5))return Number[_0x185495(0x1c0)](_0x293ee4)&&_0x293ee4>=0x0?String(_0x293ee4):undefined;const _0x14d843=nonEmptyString(_0x293ee4);return _0x14d843&&/^\d+$/['test'](_0x14d843)?_0x14d843:undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a115_0x51bf3a=a115_0x348a;(function(_0x4b7c33,_0x1cd4d0){const _0x26cd57=a115_0x348a,_0x32904d=_0x4b7c33();while(!![]){try{const _0x1c6a2f=parseInt(_0x26cd57(0xd9))/0x1*(parseInt(_0x26cd57(0xd7))/0x2)+parseInt(_0x26cd57(0xdd))/0x3+parseInt(_0x26cd57(0xf5))/0x4*(parseInt(_0x26cd57(0xde))/0x5)+-parseInt(_0x26cd57(0xdc))/0x6+-parseInt(_0x26cd57(0xf4))/0x7*(-parseInt(_0x26cd57(0xf7))/0x8)+-parseInt(_0x26cd57(0xe8))/0x9+-parseInt(_0x26cd57(0xd5))/0xa;if(_0x1c6a2f===_0x1cd4d0)break;else _0x32904d['push'](_0x32904d['shift']());}catch(_0x1bbf2e){_0x32904d['push'](_0x32904d['shift']());}}}(a115_0x19e5,0x37a11));import{CliErrors}from'../errors.js';import{CLI_BIN_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{toKebab}from'../framework/preparse.js';function a115_0x348a(_0x20faac,_0x9e1732){_0x20faac=_0x20faac-0xd3;const _0x19e5de=a115_0x19e5();let _0x348a29=_0x19e5de[_0x20faac];return _0x348a29;}const FILTER_BODY_FIELDS=new Set(['where',a115_0x51bf3a(0xf6),a115_0x51bf3a(0xda),a115_0x51bf3a(0xe9),a115_0x51bf3a(0xe6),a115_0x51bf3a(0xea),'page',a115_0x51bf3a(0xe0),a115_0x51bf3a(0xd6)]);export function assertKnownCommandFlags(_0xf9d257,_0x1a1778){const _0x44ca9f=a115_0x51bf3a,_0x2fa43e=new Set([_0x44ca9f(0xf0)]);for(const _0xa74379 of GLOBAL_FLAGS){_0x2fa43e[_0x44ca9f(0xf8)](_0xa74379['name']),_0x2fa43e[_0x44ca9f(0xf8)](toKebab(_0xa74379[_0x44ca9f(0xf9)]));}for(const _0x112127 of _0xf9d257['flags']??[]){_0x2fa43e['add'](_0x112127[_0x44ca9f(0xe4)]);}for(const [_0x2aa8d3,_0x18e4f5]of Object[_0x44ca9f(0xf1)](_0x1a1778)){const _0x5e323d=toKebab(_0x2aa8d3);if(_0x2fa43e[_0x44ca9f(0xd3)](_0x5e323d))continue;if(_0x18e4f5===![]&&_0x2fa43e[_0x44ca9f(0xd3)](_0x44ca9f(0xee)+_0x5e323d))continue;if(_0xf9d257[_0x44ca9f(0xe2)]===_0x44ca9f(0xe1)&&_0xf9d257[_0x44ca9f(0xef)]===_0x44ca9f(0xeb)&&FILTER_BODY_FIELDS[_0x44ca9f(0xd3)](_0x5e323d))throw CliErrors[_0x44ca9f(0xf2)]('--'+_0x5e323d+_0x44ca9f(0xd8)+CLI_BIN_NAME+'\x20data\x20filter`.',_0x44ca9f(0xd4)+(_0x44ca9f(0xe5)+CLI_BIN_NAME+_0x44ca9f(0xf3))+('\x27'+JSON['stringify']({'where':{'status':{'$eq':_0x44ca9f(0xe7)}},'orderBy':[{'id':_0x44ca9f(0xe3)}],'currentPage':0x1,'pageSize':0x14})+'\x27'));throw CliErrors[_0x44ca9f(0xf2)](_0x44ca9f(0xec)+_0x5e323d+_0x44ca9f(0xed)+CLI_BIN_NAME+'\x20'+_0xf9d257[_0x44ca9f(0xe2)]+'\x20'+_0xf9d257['command']+'`.',_0x44ca9f(0xdb)+CLI_BIN_NAME+'\x20'+_0xf9d257['service']+'\x20'+_0xf9d257['command']+_0x44ca9f(0xdf));}}function a115_0x19e5(){const _0x4e6377=['2065AXflbO','52afqvEZ','select','7024IoInTW','add','meowKey','has','Put\x20where,\x20select,\x20orderBy,\x20currentPage,\x20and\x20pageSize\x20inside\x20one\x20--params\x20JSON\x20object.\x20','1671420cwQRyD','pagesize','8wcClyi','\x20is\x20not\x20a\x20CLI\x20flag\x20for\x20`','17937DxLTAq','order-by','Run\x20`','819114FHXais','429633yyhyoC','67605ccwUQA','\x20--help`\x20to\x20see\x20accepted\x20flags.','page-size','data','service','asc','name','Example:\x20','current-page','active','1064016KjvDei','orderby','currentpage','filter','Unknown\x20flag\x20--','\x20for\x20`','no-','command','version','entries','validation','\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20'];a115_0x19e5=function(){return _0x4e6377;};return a115_0x19e5();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a116_0x2e93(_0x76fe19,_0x5e46a4){_0x76fe19=_0x76fe19-0x1c0;var _0x1e2b7d=a116_0x1e2b();var _0x2e938e=_0x1e2b7d[_0x76fe19];return _0x2e938e;}function a116_0x1e2b(){var _0x9b63e2=['2860BJTbsT','26DYUOLo','4185ndqmsE','1479594HKAETC','681585FhOxVK','7NnQWhD','1067ZHVKUl','4ROjiPt','332488KXzYCy','8828tQrpTw','1421886rwvVvQ','87948pdOEMB'];a116_0x1e2b=function(){return _0x9b63e2;};return a116_0x1e2b();}(function(_0x23f2d6,_0x1857df){var _0x256479=a116_0x2e93,_0x2dd2f8=_0x23f2d6();while(!![]){try{var _0x123fa1=-parseInt(_0x256479(0x1c6))/0x1*(-parseInt(_0x256479(0x1c2))/0x2)+parseInt(_0x256479(0x1c3))/0x3*(-parseInt(_0x256479(0x1c0))/0x4)+-parseInt(_0x256479(0x1c9))/0x5+parseInt(_0x256479(0x1c8))/0x6*(parseInt(_0x256479(0x1ca))/0x7)+-parseInt(_0x256479(0x1c1))/0x8+-parseInt(_0x256479(0x1c7))/0x9*(parseInt(_0x256479(0x1c5))/0xa)+parseInt(_0x256479(0x1cb))/0xb*(parseInt(_0x256479(0x1c4))/0xc);if(_0x123fa1===_0x1857df)break;else _0x2dd2f8['push'](_0x2dd2f8['shift']());}catch(_0x32c3ec){_0x2dd2f8['push'](_0x2dd2f8['shift']());}}}(a116_0x1e2b,0x462d6));export{extractList,extractPaging}from'@lovrabet/cli-framework';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x397cd9,_0x23c86e){const _0x303659=a117_0x4070,_0x1b8731=_0x397cd9();while(!![]){try{const _0x102702=-parseInt(_0x303659(0x12e))/0x1+parseInt(_0x303659(0x136))/0x2+-parseInt(_0x303659(0x13d))/0x3+-parseInt(_0x303659(0x12d))/0x4*(-parseInt(_0x303659(0x130))/0x5)+-parseInt(_0x303659(0x129))/0x6+-parseInt(_0x303659(0x12c))/0x7*(-parseInt(_0x303659(0x13f))/0x8)+parseInt(_0x303659(0x134))/0x9*(parseInt(_0x303659(0x12a))/0xa);if(_0x102702===_0x23c86e)break;else _0x1b8731['push'](_0x1b8731['shift']());}catch(_0x1a2699){_0x1b8731['push'](_0x1b8731['shift']());}}}(a117_0x543f,0xbc10a));import{CLI_BIN_NAME}from'../constant/cli.js';function a117_0x543f(){const _0x4982db=['\x20\x20\x20Continue?\x20[y/N]\x20','length','32958HoEkYg','name','1613452YVdGtQ','affectedRecords','--yes','params=','kind','cron','schedule-id','1892148dtgtFj','stringify','8haURjx','title','command','description','service','params','\x20\x20\x20Affected:\x20','scheduled-at','channel=','join','push','channel','entries','scheduled-at=','code','3415626lpcTEr','250ogGvfI','code=','7393778lUZtMH','40grRlac','142339VpoVAA','id=','79055ZOdTEn','⚠\x20\x20High-risk\x20operation:\x20'];a117_0x543f=function(){return _0x4982db;};return a117_0x543f();}export function buildConfirmationLines(_0x580a6d,_0x3e8a27,_0x36e145){const _0x4b35ec=a117_0x4070,_0x15e87e=buildConfirmationContext(_0x580a6d,_0x3e8a27,_0x36e145),_0x300bce=[_0x4b35ec(0x131)+_0x15e87e['commandLabel']];return _0x15e87e[_0x4b35ec(0x142)]&&_0x300bce[_0x4b35ec(0x124)]('\x20\x20\x20'+_0x15e87e[_0x4b35ec(0x142)]),_0x15e87e[_0x4b35ec(0x137)]&&_0x300bce[_0x4b35ec(0x124)](_0x4b35ec(0x120)+_0x15e87e[_0x4b35ec(0x137)]),_0x300bce['push'](_0x4b35ec(0x132)),_0x300bce;}function a117_0x4070(_0x308e54,_0x42956f){_0x308e54=_0x308e54-0x11e;const _0x543fb7=a117_0x543f();let _0x407022=_0x543fb7[_0x308e54];return _0x407022;}export function reconstructCommandArgv(_0x51e2a9,_0x9640b4){const _0x55735c=a117_0x4070,_0x5e16ab=[CLI_BIN_NAME,_0x51e2a9[_0x55735c(0x11e)],_0x51e2a9[_0x55735c(0x141)]];for(const [_0x5c6918,_0x430460]of Object[_0x55735c(0x126)](_0x9640b4)){if(_0x430460===!![])_0x5e16ab[_0x55735c(0x124)]('--'+_0x5c6918);else _0x430460!==![]&&_0x430460!==undefined&&_0x430460!==''&&_0x5e16ab[_0x55735c(0x124)]('--'+_0x5c6918+'\x20'+JSON[_0x55735c(0x13e)](_0x430460));}return _0x5e16ab[_0x55735c(0x124)](_0x55735c(0x138)),_0x5e16ab[_0x55735c(0x123)]('\x20');}function buildConfirmationContext(_0x22f50f,_0x1b5f71,_0x4cced8){const _0x5c378c=a117_0x4070,_0x3ac84f=extractAffectedRecords(_0x4cced8);return{'commandLabel':_0x1b5f71,'description':_0x22f50f[_0x5c378c(0x142)],'affectedRecords':_0x3ac84f};}function extractAffectedRecords(_0x34d004){const _0x4cde48=a117_0x4070,_0x23c5bd=[];if(_0x34d004[_0x4cde48(0x128)])_0x23c5bd[_0x4cde48(0x124)](_0x4cde48(0x12b)+_0x34d004[_0x4cde48(0x128)]);if(_0x34d004['id'])_0x23c5bd[_0x4cde48(0x124)](_0x4cde48(0x12f)+_0x34d004['id']);if(_0x34d004[_0x4cde48(0x13c)])_0x23c5bd[_0x4cde48(0x124)]('schedule-id='+_0x34d004[_0x4cde48(0x13c)]);if(_0x34d004['name'])_0x23c5bd[_0x4cde48(0x124)]('name='+_0x34d004[_0x4cde48(0x135)]);if(_0x34d004[_0x4cde48(0x140)])_0x23c5bd[_0x4cde48(0x124)]('title='+_0x34d004[_0x4cde48(0x140)]);if(_0x34d004[_0x4cde48(0x13a)])_0x23c5bd[_0x4cde48(0x124)]('kind='+_0x34d004['kind']);if(_0x34d004['cron'])_0x23c5bd[_0x4cde48(0x124)]('cron='+_0x34d004[_0x4cde48(0x13b)]);if(_0x34d004[_0x4cde48(0x121)])_0x23c5bd[_0x4cde48(0x124)](_0x4cde48(0x127)+_0x34d004[_0x4cde48(0x121)]);if(_0x34d004[_0x4cde48(0x125)])_0x23c5bd[_0x4cde48(0x124)](_0x4cde48(0x122)+_0x34d004[_0x4cde48(0x125)]);if(_0x34d004[_0x4cde48(0x11f)])_0x23c5bd['push'](_0x4cde48(0x139)+_0x34d004[_0x4cde48(0x11f)]);return _0x23c5bd[_0x4cde48(0x133)]>0x0?_0x23c5bd[_0x4cde48(0x123)](',\x20'):undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x185c2c,_0x5c712a){const _0x482d90=a118_0x4eef,_0x4cf40c=_0x185c2c();while(!![]){try{const _0x1133b6=-parseInt(_0x482d90(0xb3))/0x1+-parseInt(_0x482d90(0xb8))/0x2+-parseInt(_0x482d90(0xb7))/0x3*(-parseInt(_0x482d90(0xb1))/0x4)+-parseInt(_0x482d90(0xbc))/0x5*(parseInt(_0x482d90(0xbf))/0x6)+-parseInt(_0x482d90(0xb0))/0x7*(-parseInt(_0x482d90(0xb5))/0x8)+-parseInt(_0x482d90(0xbb))/0x9*(-parseInt(_0x482d90(0xae))/0xa)+-parseInt(_0x482d90(0xb6))/0xb*(parseInt(_0x482d90(0xb2))/0xc);if(_0x1133b6===_0x5c712a)break;else _0x4cf40c['push'](_0x4cf40c['shift']());}catch(_0x30db72){_0x4cf40c['push'](_0x4cf40c['shift']());}}}(a118_0x1aa5,0x38623));import{LovrabetError}from'@lovrabet/sdk';import{CliErrors}from'../errors.js';import{createRateLimitError,readRetryAfter,readRetryAfterSeconds}from'../framework/rate-limit.js';export function mapUserFacingExecuteError(_0x27ce84){const _0x96ad5c=a118_0x4eef;if(_0x27ce84 instanceof LovrabetError){const _0x5c25c=userFacingLovrabetMessage(_0x27ce84),_0x3720c=_0x27ce84,_0x284b1c=createRateLimitError({'status':_0x3720c['status'],'errorCode':_0x3720c[_0x96ad5c(0xb4)],'message':_0x5c25c,'retryAfter':readRetryAfter(_0x3720c[_0x96ad5c(0xbd)]?.['headers'])??readRetryAfterSeconds(_0x3720c[_0x96ad5c(0xbd)])});return _0x284b1c??CliErrors[_0x96ad5c(0xba)](_0x5c25c);}return _0x27ce84;}function a118_0x4eef(_0xec6506,_0x5043ca){_0xec6506=_0xec6506-0xae;const _0x1aa522=a118_0x1aa5();let _0x4eef3b=_0x1aa522[_0xec6506];return _0x4eef3b;}function userFacingLovrabetMessage(_0x52066d){const _0x548eca=a118_0x4eef,_0x4d25a2=_0x52066d[_0x548eca(0xbe)];if(_0x4d25a2!==undefined&&_0x4d25a2!==null){if(typeof _0x4d25a2==='string'&&_0x4d25a2['trim']())return _0x4d25a2['trim']();try{return JSON[_0x548eca(0xaf)](_0x4d25a2);}catch{}}return _0x52066d[_0x548eca(0xb9)];}function a118_0x1aa5(){const _0x28155a=['3TVUJdL','203498pVxbiX','message','validation','603HQuAdX','15NnUsVr','response','description','824994peWUUm','51100HvXPsw','stringify','84iVdlMa','1518428JTroVQ','4321716lvrMZZ','64565JLQymg','code','298616QUAzBF','11cgLIMb'];a118_0x1aa5=function(){return _0x28155a;};return a118_0x1aa5();}
|
|
@@ -11,15 +11,15 @@
|
|
|
11
11
|
* This file implements the `RunnerAdapter` interface with Lovrabet Runtime-specific logic:
|
|
12
12
|
* - `prepare`: resolves AccessKey auth, initializes the SDK client
|
|
13
13
|
* - `confirmHighRisk`: interactive or non-interactive confirmation
|
|
14
|
-
* - `riskPolicy`: logs violations and
|
|
15
|
-
*
|
|
14
|
+
* - `riskPolicy`: logs ordinary violations and, in native-tool hosts, returns a
|
|
15
|
+
* hard routing error for shell writes instead of suggesting risk escalation
|
|
16
16
|
* - `finalize`: clears the SDK client and active AccessKey from module state
|
|
17
17
|
*
|
|
18
|
-
* Why
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
18
|
+
* Why ordinary risk violations remain `cancelled`: outside a native-tool host,
|
|
19
|
+
* the configured ceiling is user policy and a blocked command is an expected
|
|
20
|
+
* cancellation. A host that explicitly advertises the native tool is different:
|
|
21
|
+
* shell writes are a routing error, so the CLI exits non-zero and tells the caller
|
|
22
|
+
* to use the permission-aware native tool without changing the risk ceiling.
|
|
23
23
|
*
|
|
24
24
|
* Design decision: `accessKey` is stored in a module-level variable in `api-client.ts`
|
|
25
25
|
* rather than threaded through the context. This simplifies the adapter's `prepare`
|
|
@@ -62,6 +62,8 @@ export interface PipelineEnv {
|
|
|
62
62
|
defaultVerbose?: boolean;
|
|
63
63
|
/** User-configured risk ceiling from the config file. */
|
|
64
64
|
riskLevel?: Risk;
|
|
65
|
+
/** Machine-managed capability flag for permission-aware native routing. */
|
|
66
|
+
nativeToolAvailable?: boolean;
|
|
65
67
|
/** AccessKey resolved from config (may be undefined for public commands). */
|
|
66
68
|
accessKey?: string;
|
|
67
69
|
/** Normalized environment name. */
|
package/lib/framework/runner.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x6c0e93,_0x5a841a){const _0x31284e=a119_0x9a17,_0x3f16df=_0x6c0e93();while(!![]){try{const _0x43cc1c=parseInt(_0x31284e(0x1b7))/0x1+parseInt(_0x31284e(0x1bf))/0x2*(parseInt(_0x31284e(0x1c7))/0x3)+-parseInt(_0x31284e(0x1cc))/0x4+parseInt(_0x31284e(0x1ac))/0x5+parseInt(_0x31284e(0x1ca))/0x6+parseInt(_0x31284e(0x19d))/0x7+-parseInt(_0x31284e(0x1ad))/0x8;if(_0x43cc1c===_0x5a841a)break;else _0x3f16df['push'](_0x3f16df['shift']());}catch(_0x70aec4){_0x3f16df['push'](_0x3f16df['shift']());}}}(a119_0x4c4c,0x76ca7));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';function a119_0x9a17(_0x56e4ee,_0x3e578a){_0x56e4ee=_0x56e4ee-0x199;const _0x4c4c23=a119_0x4c4c();let _0x9a17b0=_0x4c4c23[_0x56e4ee];return _0x9a17b0;}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(_0x4b4dab){const _0x4a3a3f=a119_0x9a17;return void _0x4b4dab,AUTH_MODE[_0x4a3a3f(0x1b2)];}let sdkClientInitialized=![];export function createPipelineEnv(_0x46b1b3,_0x22939d){const _0x5b22f9=a119_0x9a17,_0x4e2768=typeof _0x22939d[_0x5b22f9(0x1e1)]===_0x5b22f9(0x1c0)&&_0x22939d[_0x5b22f9(0x1e1)][_0x5b22f9(0x1cf)]();return{'rawFlags':_0x22939d,'appCode':_0x46b1b3[_0x5b22f9(0x1a0)]||productEnv(_0x5b22f9(0x1ce))||(_0x4e2768?undefined:readAppCodeFromConfig()),'appCodeSource':_0x46b1b3[_0x5b22f9(0x1d9)],'apiDomain':getApiDomain(),'runtimeDomain':getRuntimeDomain(),'isNonInteractive':isNonInteractiveMode(_0x22939d),'defaultFormat':_0x46b1b3[_0x5b22f9(0x1c9)],'defaultPageSize':_0x46b1b3[_0x5b22f9(0x1b6)],'defaultVerbose':_0x46b1b3[_0x5b22f9(0x1da)],'riskLevel':_0x46b1b3[_0x5b22f9(0x1c3)],'accessKey':_0x46b1b3[_0x5b22f9(0x1c4)],'env':_0x46b1b3['env'],'mergedCli':{'defaultApp':_0x46b1b3[_0x5b22f9(0x1d2)],'currentApp':_0x46b1b3[_0x5b22f9(0x1a8)],'appCode':_0x46b1b3[_0x5b22f9(0x1a0)]}};}export function createLovrabetRunnerAdapter(_0x23145c={}){const _0x29c5bd=a119_0x9a17,_0x59835a={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0x29c5bd(0x1a6)](_0x396bc7=>PIPELINE_FLAG_NAMES[_0x29c5bd(0x1c2)](_0x396bc7[_0x29c5bd(0x1cb)]))[_0x29c5bd(0x19e)](({name:_0x32bf86,type:_0x43fd17,description:_0x35da9c})=>({'name':_0x32bf86,'type':_0x43fd17,'description':_0x35da9c})),'formatOutput':_0x23145c[_0x29c5bd(0x1bb)]??formatOutput,'getCommandLabel'(_0xf96015){const _0x7d3be4=_0x29c5bd;return CLI_BIN_NAME+'\x20'+_0xf96015[_0x7d3be4(0x1ab)]+'\x20'+_0xf96015['command'];},'riskPolicy':{'onViolation'(_0x3d940f){const _0x1a4750=_0x29c5bd;console[_0x1a4750(0x1c8)](_0x3d940f);},'createError'(_0x8eeb67){const _0x15e7df=_0x29c5bd;return CliErrors[_0x15e7df(0x1dd)](_0x8eeb67);}},async 'prepare'(_0xcb97a5,_0x2ad46e){const _0x36e8d6=_0x29c5bd,_0xf4c11e=resolveAuthMode(_0x2ad46e);if(_0xcb97a5[_0x36e8d6(0x1b1)]!==![]){if(!_0x2ad46e[_0x36e8d6(0x1c4)])throw CliErrors[_0x36e8d6(0x1b9)](_0x36e8d6(0x1d6)+PRODUCT_CONFIG[_0x36e8d6(0x1bd)]+_0x36e8d6(0x1cd)+productEnvName(_0x36e8d6(0x1a1))+'.');const {setActiveAK:_0x32fa92}=await import('../core/api-client.js');_0x32fa92(_0x2ad46e[_0x36e8d6(0x1c4)]);}let _0x1fecf4='';if(_0xcb97a5[_0x36e8d6(0x199)]!==![]){_0x1fecf4=_0x2ad46e[_0x36e8d6(0x1a0)]??'',_0x1fecf4=await resolveExplicitAppName(_0xcb97a5,_0x2ad46e,_0x1fecf4);if(!_0x1fecf4){await assertSelectedAppNameIsRuntimeAccessible(_0xcb97a5,_0x2ad46e);throw CliErrors[_0x36e8d6(0x1af)](_0x36e8d6(0x19f)+PRODUCT_CONFIG[_0x36e8d6(0x1bd)]+'.');}await assertAppCodeIsRuntimeAccessible(_0xcb97a5,_0x2ad46e,_0x1fecf4);}if(_0x1fecf4){const {initSdkClient:_0x25d728}=await import(_0x36e8d6(0x1a4));_0x25d728({'appCode':_0x1fecf4,'env':_0x2ad46e[_0x36e8d6(0x1ae)]??_0x36e8d6(0x1a5),'runtimeDomain':_0x2ad46e[_0x36e8d6(0x1d7)],'accessKey':_0x2ad46e['accessKey'],'authMode':_0xf4c11e}),sdkClientInitialized=!![];}return{'defaults':{'booleans':{'verbose':_0x2ad46e[_0x36e8d6(0x1d3)]},'numbers':{'pagesize':_0x2ad46e[_0x36e8d6(0x1d1)]}},'extras':{'appCode':_0x1fecf4,'cookie':'','apiDomain':_0x2ad46e[_0x36e8d6(0x1d0)],'apiDir':'','accessKey':_0x2ad46e[_0x36e8d6(0x1c4)],'envName':_0x2ad46e[_0x36e8d6(0x1ae)],'mergedCli':_0x2ad46e[_0x36e8d6(0x1a2)]}};},'confirmHighRisk':_0x23145c[_0x29c5bd(0x1a7)]??(async({def:_0xedde4a,env:_0x474e21,flags:_0x22dbd5,commandLabel:_0x123eca})=>{const _0x20eef6=_0x29c5bd;if(_0x474e21['isNonInteractive']){const _0x543bb1=reconstructCommandArgv(_0xedde4a,_0x22dbd5);throw CliErrors[_0x20eef6(0x1c6)](_0x20eef6(0x1d5)+_0x123eca+_0x20eef6(0x1be)+(_0x20eef6(0x19b)+_0x543bb1));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0xedde4a,_0x123eca,_0x22dbd5),'createCancelledError':_0x548d31=>CliErrors[_0x20eef6(0x1dd)](_0x548d31)});}),'mapDryRunError'(_0x18d3fe){return mapUserFacingExecuteError(_0x18d3fe);},'mapExecuteError'(_0x558670){return mapUserFacingExecuteError(_0x558670);},async 'finalize'(){await finalizeLovrabetRuntimeState();}};return _0x59835a;}function a119_0x4c4c(){const _0x49c685=['APPCODE','trim','apiDomain','defaultPageSize','defaultApp','defaultVerbose','execute','High-risk\x20operation\x20`','Set\x20accessKey\x20in\x20','runtimeDomain','resolve','appCodeSource','verbose','appcode\x20\x22','items','cancelled','rawFlags','doctor','nonInteractive','app','pretty','requiresAppCode','_notice','\x20\x20To\x20proceed:\x20','local-alias','2576973NfGkqd','map','Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20','appCode','ACCESS_KEY','mergedCli','install','../core/sdk-client.js','production','filter','confirmHighRisk','currentApp','update','schema','service','3881145hhEmNP','8819128xcSUwy','env','configMissing','catch','requiresAuth','ClientAk','.appcode\x20to\x20','includes','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.','pageSize','143350sQuuoV','Run\x20`','authRequired','command','formatOutput','../commands/app/remote-source.js','newConfigFileName','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a','84RGQlcI','string','appcode','has','riskLevel','accessKey','object','validation','23703QiGKrR','error','format','5459280LglvLQ','name','3761928LgRcwl','\x20or\x20pass\x20'];a119_0x4c4c=function(){return _0x49c685;};return a119_0x4c4c();}const terminalRunnerAdapter=createLovrabetRunnerAdapter();export async function finalizeLovrabetRuntimeState(){const _0x412061=a119_0x9a17;try{if(sdkClientInitialized){const {clearSdkClient:_0x5493f9}=await import(_0x412061(0x1a4));_0x5493f9();}}finally{sdkClientInitialized=![];const {clearActiveAK:_0x1f70ac}=await import('../core/api-client.js');_0x1f70ac();}}async function resolveExplicitAppName(_0x4464ee,_0x5c650d,_0x3ba4f1){const _0x27892d=a119_0x9a17;if(_0x4464ee[_0x27892d(0x199)]===![])return _0x3ba4f1;const _0x207be3=typeof _0x5c650d[_0x27892d(0x1de)][_0x27892d(0x1e1)]==='string'?_0x5c650d[_0x27892d(0x1de)][_0x27892d(0x1e1)]['trim']():'';if(!_0x207be3)return _0x3ba4f1;const _0x186db4=typeof _0x5c650d['rawFlags']['appcode']===_0x27892d(0x1c0)&&_0x5c650d[_0x27892d(0x1de)][_0x27892d(0x1c1)][_0x27892d(0x1cf)]()||productEnv(_0x27892d(0x1ce));if(_0x186db4||_0x5c650d['appCodeSource']===_0x27892d(0x19c))return _0x3ba4f1;const {getRemoteAppList:_0x34f4eb}=await import(_0x27892d(0x1bc)),_0x494507=await _0x34f4eb({'env':_0x5c650d[_0x27892d(0x1ae)]??'production','accessKey':_0x5c650d[_0x27892d(0x1c4)]}),_0x538f1f=findAppByName(_0x494507[_0x27892d(0x1dc)],_0x207be3);if(_0x538f1f&&!isRuntimeAccessibleApp(_0x538f1f))throw runtimeInaccessibleAppError(_0x538f1f,'\x22'+_0x207be3+'\x22');const _0x232b61=_0x538f1f?.['appCode']?.['trim']();if(_0x232b61)return _0x232b61;throw CliErrors['validation']('Unknown\x20app:\x20'+_0x207be3,_0x27892d(0x1b8)+CLI_BIN_NAME+_0x27892d(0x1b5)+_0x207be3+_0x27892d(0x1b3)+PRODUCT_CONFIG[_0x27892d(0x1bd)]+'.');}async function assertSelectedAppNameIsRuntimeAccessible(_0x21a219,_0x279ce8){const _0x4fdccc=a119_0x9a17;if(_0x21a219[_0x4fdccc(0x199)]===![]||!_0x279ce8[_0x4fdccc(0x1c4)])return;const _0x3d2b08=(typeof _0x279ce8[_0x4fdccc(0x1de)][_0x4fdccc(0x1e1)]===_0x4fdccc(0x1c0)&&_0x279ce8['rawFlags']['app'][_0x4fdccc(0x1cf)]()?_0x279ce8[_0x4fdccc(0x1de)][_0x4fdccc(0x1e1)]:_0x279ce8[_0x4fdccc(0x1a2)]?.[_0x4fdccc(0x1a8)]??_0x279ce8['mergedCli']?.[_0x4fdccc(0x1d2)])?.[_0x4fdccc(0x1cf)]();if(!_0x3d2b08)return;const {getRemoteAppList:_0x830b92}=await import(_0x4fdccc(0x1bc)),_0xb121c8=await _0x830b92({'env':_0x279ce8['env']??'production','accessKey':_0x279ce8[_0x4fdccc(0x1c4)]}),_0x18385e=findAppByName(_0xb121c8[_0x4fdccc(0x1dc)],_0x3d2b08);if(_0x18385e&&!isRuntimeAccessibleApp(_0x18385e))throw runtimeInaccessibleAppError(_0x18385e,'\x22'+_0x3d2b08+'\x22');}async function assertAppCodeIsRuntimeAccessible(_0x5c8636,_0x96ac9c,_0x1705ef){const _0x4fe106=a119_0x9a17;if(_0x5c8636[_0x4fe106(0x199)]===![]||!_0x96ac9c['accessKey'])return;const {getRemoteAppList:_0x29cca7}=await import(_0x4fe106(0x1bc)),_0x1da94b=await _0x29cca7({'env':_0x96ac9c[_0x4fe106(0x1ae)]??_0x4fe106(0x1a5),'accessKey':_0x96ac9c[_0x4fe106(0x1c4)]}),_0xaf4c7f=findAppByCode(_0x1da94b['items'],_0x1705ef);if(_0xaf4c7f&&!isRuntimeAccessibleApp(_0xaf4c7f))throw runtimeInaccessibleAppError(_0xaf4c7f,_0x4fe106(0x1db)+_0x1705ef+'\x22');}export async function runCommand(_0x2cbbb5,_0x75c2fb,_0x4bd0b2=terminalRunnerAdapter){const _0x356ff8=a119_0x9a17;assertKnownCommandFlags(_0x2cbbb5,_0x75c2fb[_0x356ff8(0x1de)]),await runCommandWithAdapter(shouldApplyVersionPolicy(_0x2cbbb5)?withVersionPolicy(_0x2cbbb5):_0x2cbbb5,_0x75c2fb,_0x4bd0b2);}function shouldApplyVersionPolicy(_0x591c08){const _0x194e0f=a119_0x9a17;if([_0x194e0f(0x1a9),_0x194e0f(0x1aa),_0x194e0f(0x1df)][_0x194e0f(0x1b4)](_0x591c08[_0x194e0f(0x1ab)]))return![];return!(_0x591c08['service']==='cli-skill'&&_0x591c08[_0x194e0f(0x1ba)]===_0x194e0f(0x1a3));}function withVersionPolicy(_0x49a513){return{..._0x49a513,async 'execute'(_0x5ae131){const _0x26feea=a119_0x9a17,_0x99627c=await checkCliVersion();assertCliVersionSupported(_0x99627c);const _0x58bb68=shouldResolveUpdateNotice(_0x5ae131)?resolveLatestUpdateNotice(_0x99627c)[_0x26feea(0x1b0)](()=>null):Promise[_0x26feea(0x1d8)](null),_0x9ee036=await _0x49a513[_0x26feea(0x1d4)](_0x5ae131);return attachUpdateNotice(_0x9ee036,await _0x58bb68);}};}function shouldResolveUpdateNotice(_0x3e2f79){const _0x459a8c=a119_0x9a17;return _0x3e2f79[_0x459a8c(0x1c9)]===_0x459a8c(0x1e2)&&!_0x3e2f79[_0x459a8c(0x1e0)];}function attachUpdateNotice(_0x143c26,_0x45ba7e){const _0x9577f0=a119_0x9a17;if(!_0x45ba7e||!_0x143c26||typeof _0x143c26!==_0x9577f0(0x1c5))return _0x143c26;const _0x3ca6fa=_0x143c26,_0x516b6a=typeof _0x3ca6fa[_0x9577f0(0x19a)]===_0x9577f0(0x1c5)&&_0x3ca6fa['_notice']!==null?_0x3ca6fa[_0x9577f0(0x19a)]:{};return{..._0x3ca6fa,'_notice':{..._0x516b6a,'update':_0x45ba7e}};}
|
|
1
|
+
(function(_0x38bad7,_0x11af4e){const _0x2106ec=a119_0x517c,_0x49ff80=_0x38bad7();while(!![]){try{const _0x218a7c=parseInt(_0x2106ec(0xbe))/0x1*(parseInt(_0x2106ec(0xc0))/0x2)+parseInt(_0x2106ec(0xc2))/0x3+-parseInt(_0x2106ec(0xa6))/0x4+parseInt(_0x2106ec(0xdc))/0x5*(-parseInt(_0x2106ec(0xe7))/0x6)+-parseInt(_0x2106ec(0xdb))/0x7+-parseInt(_0x2106ec(0xcc))/0x8*(-parseInt(_0x2106ec(0xac))/0x9)+-parseInt(_0x2106ec(0xe0))/0xa*(-parseInt(_0x2106ec(0xbd))/0xb);if(_0x218a7c===_0x11af4e)break;else _0x49ff80['push'](_0x49ff80['shift']());}catch(_0x97b28c){_0x49ff80['push'](_0x49ff80['shift']());}}}(a119_0x9a2b,0x95b43));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(_0x912c93){return void _0x912c93,AUTH_MODE['ClientAk'];}function a119_0x9a2b(){const _0x1f75f8=['pretty','appcode','../core/sdk-client.js','appCode','nativeToolRequired','rawFlags','1848404GgMtfn','apiDomain','configMissing','appCodeSource','name','write','333eqycYG','appcode\x20\x22','runtimeDomain','command','currentApp','service','Unknown\x20app:\x20','formatOutput','nativeToolAvailable','APPCODE','Set\x20accessKey\x20in\x20','risk','local-alias','install','includes','format','authRequired','2321JRWOvl','3dJSLND','validation','482624BckSHo','High-risk\x20operation\x20`','774753pubEcM','resolve','isNonInteractive','accessKey','ACCESS_KEY','catch','error','confirmHighRisk','\x20\x20To\x20proceed:\x20','object','153304xgQBzQ','trim','Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20','cli-skill','map','newConfigFileName','items','defaultApp','defaultVerbose','update','doctor','cancelled','../commands/app/remote-source.js','production','string','4706926TtlkDe','94485YIWpzO','riskLevel','high-risk-write','filter','44770xHIFNb','defaultPageSize','_notice','mergedCli','requiresAppCode','nonInteractive','env','282IApmxg','verbose','execute','app'];a119_0x9a2b=function(){return _0x1f75f8;};return a119_0x9a2b();}let sdkClientInitialized=![];export function createPipelineEnv(_0x8dca65,_0x1c86ce){const _0x204cdc=a119_0x517c,_0x45ac4a=typeof _0x1c86ce[_0x204cdc(0xea)]==='string'&&_0x1c86ce['app'][_0x204cdc(0xcd)]();return{'rawFlags':_0x1c86ce,'appCode':_0x8dca65['appCode']||productEnv(_0x204cdc(0xb5))||(_0x45ac4a?undefined:readAppCodeFromConfig()),'appCodeSource':_0x8dca65[_0x204cdc(0xa9)],'apiDomain':getApiDomain(),'runtimeDomain':getRuntimeDomain(),'isNonInteractive':isNonInteractiveMode(_0x1c86ce),'defaultFormat':_0x8dca65[_0x204cdc(0xbb)],'defaultPageSize':_0x8dca65['pageSize'],'defaultVerbose':_0x8dca65[_0x204cdc(0xe8)],'riskLevel':_0x8dca65[_0x204cdc(0xdd)],'nativeToolAvailable':_0x8dca65['nativeToolAvailable'],'accessKey':_0x8dca65[_0x204cdc(0xc5)],'env':_0x8dca65[_0x204cdc(0xe6)],'mergedCli':{'defaultApp':_0x8dca65[_0x204cdc(0xd3)],'currentApp':_0x8dca65[_0x204cdc(0xb0)],'appCode':_0x8dca65[_0x204cdc(0xee)]}};}export function createLovrabetRunnerAdapter(_0x3a5b41={}){const _0x12c13a=a119_0x517c,_0x36b385={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0x12c13a(0xdf)](_0x1c6096=>PIPELINE_FLAG_NAMES['has'](_0x1c6096[_0x12c13a(0xaa)]))[_0x12c13a(0xd0)](({name:_0x461d60,type:_0x47e904,description:_0xbd3720})=>({'name':_0x461d60,'type':_0x47e904,'description':_0xbd3720})),'formatOutput':_0x3a5b41[_0x12c13a(0xb3)]??formatOutput,'getCommandLabel'(_0x29e8fb){const _0x303635=_0x12c13a;return CLI_BIN_NAME+'\x20'+_0x29e8fb[_0x303635(0xb1)]+'\x20'+_0x29e8fb[_0x303635(0xaf)];},'riskPolicy':{'onViolation'(_0x244862,{def:_0x56ac81,env:_0x2c6fc1}){const _0x1290d7=_0x12c13a;if(shouldRouteWriteToNativeTool(_0x56ac81,_0x2c6fc1))return;console[_0x1290d7(0xc8)](_0x244862);},'createError'(_0x4fa82c,{def:_0x44c42b,env:_0x36465b}){const _0x2ef0ce=_0x12c13a;if(shouldRouteWriteToNativeTool(_0x44c42b,_0x36465b))return CliErrors[_0x2ef0ce(0xef)](CLI_BIN_NAME+'\x20'+_0x44c42b[_0x2ef0ce(0xb1)]+'\x20'+_0x44c42b['command']);return CliErrors[_0x2ef0ce(0xd7)](_0x4fa82c);}},async 'prepare'(_0x4485fe,_0xaa92a3){const _0x28415c=_0x12c13a,_0x74c50f=resolveAuthMode(_0xaa92a3);if(_0x4485fe['requiresAuth']!==![]){if(!_0xaa92a3[_0x28415c(0xc5)])throw CliErrors[_0x28415c(0xbc)](_0x28415c(0xb6)+PRODUCT_CONFIG[_0x28415c(0xd1)]+'\x20or\x20pass\x20'+productEnvName(_0x28415c(0xc6))+'.');const {setActiveAK:_0x157df9}=await import('../core/api-client.js');_0x157df9(_0xaa92a3[_0x28415c(0xc5)]);}let _0x1f4e10='';if(_0x4485fe[_0x28415c(0xe4)]!==![]){_0x1f4e10=_0xaa92a3[_0x28415c(0xee)]??'',_0x1f4e10=await resolveExplicitAppName(_0x4485fe,_0xaa92a3,_0x1f4e10);if(!_0x1f4e10){await assertSelectedAppNameIsRuntimeAccessible(_0x4485fe,_0xaa92a3);throw CliErrors[_0x28415c(0xa8)](_0x28415c(0xce)+PRODUCT_CONFIG[_0x28415c(0xd1)]+'.');}await assertAppCodeIsRuntimeAccessible(_0x4485fe,_0xaa92a3,_0x1f4e10);}if(_0x1f4e10){const {initSdkClient:_0x14ebc7}=await import(_0x28415c(0xed));_0x14ebc7({'appCode':_0x1f4e10,'env':_0xaa92a3[_0x28415c(0xe6)]??_0x28415c(0xd9),'runtimeDomain':_0xaa92a3[_0x28415c(0xae)],'accessKey':_0xaa92a3['accessKey'],'authMode':_0x74c50f}),sdkClientInitialized=!![];}return{'defaults':{'booleans':{'verbose':_0xaa92a3[_0x28415c(0xd4)]},'numbers':{'pagesize':_0xaa92a3[_0x28415c(0xe1)]}},'extras':{'appCode':_0x1f4e10,'cookie':'','apiDomain':_0xaa92a3[_0x28415c(0xa7)],'apiDir':'','accessKey':_0xaa92a3['accessKey'],'envName':_0xaa92a3[_0x28415c(0xe6)],'mergedCli':_0xaa92a3['mergedCli']}};},'confirmHighRisk':_0x3a5b41[_0x12c13a(0xc9)]??(async({def:_0x5531c0,env:_0x36cfc1,flags:_0x44dab7,commandLabel:_0x511ab9})=>{const _0x2e5a69=_0x12c13a;if(_0x36cfc1[_0x2e5a69(0xc4)]){const _0x520eef=reconstructCommandArgv(_0x5531c0,_0x44dab7);throw CliErrors[_0x2e5a69(0xbf)](_0x2e5a69(0xc1)+_0x511ab9+'`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a'+(_0x2e5a69(0xca)+_0x520eef));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0x5531c0,_0x511ab9,_0x44dab7),'createCancelledError':_0x73edad=>CliErrors['cancelled'](_0x73edad)});}),'mapDryRunError'(_0x526830){return mapUserFacingExecuteError(_0x526830);},'mapExecuteError'(_0x379599){return mapUserFacingExecuteError(_0x379599);},async 'finalize'(){await finalizeLovrabetRuntimeState();}};return _0x36b385;}function shouldRouteWriteToNativeTool(_0x16bbaf,_0x36dee9){const _0x1c7fa1=a119_0x517c;return _0x36dee9[_0x1c7fa1(0xb4)]===!![]&&(_0x16bbaf[_0x1c7fa1(0xb7)]===_0x1c7fa1(0xab)||_0x16bbaf[_0x1c7fa1(0xb7)]===_0x1c7fa1(0xde));}const terminalRunnerAdapter=createLovrabetRunnerAdapter();export async function finalizeLovrabetRuntimeState(){const _0x46bcb3=a119_0x517c;try{if(sdkClientInitialized){const {clearSdkClient:_0x51650a}=await import(_0x46bcb3(0xed));_0x51650a();}}finally{sdkClientInitialized=![];const {clearActiveAK:_0x4198eb}=await import('../core/api-client.js');_0x4198eb();}}async function resolveExplicitAppName(_0x3801f7,_0x3d06d,_0x1d9ed5){const _0x51283e=a119_0x517c;if(_0x3801f7[_0x51283e(0xe4)]===![])return _0x1d9ed5;const _0x27cae9=typeof _0x3d06d[_0x51283e(0xa5)][_0x51283e(0xea)]==='string'?_0x3d06d[_0x51283e(0xa5)][_0x51283e(0xea)][_0x51283e(0xcd)]():'';if(!_0x27cae9)return _0x1d9ed5;const _0x43c944=typeof _0x3d06d[_0x51283e(0xa5)]['appcode']===_0x51283e(0xda)&&_0x3d06d[_0x51283e(0xa5)][_0x51283e(0xec)][_0x51283e(0xcd)]()||productEnv('APPCODE');if(_0x43c944||_0x3d06d[_0x51283e(0xa9)]===_0x51283e(0xb8))return _0x1d9ed5;const {getRemoteAppList:_0x6c9255}=await import(_0x51283e(0xd8)),_0x7163e2=await _0x6c9255({'env':_0x3d06d[_0x51283e(0xe6)]??_0x51283e(0xd9),'accessKey':_0x3d06d[_0x51283e(0xc5)]}),_0x4f1d40=findAppByName(_0x7163e2[_0x51283e(0xd2)],_0x27cae9);if(_0x4f1d40&&!isRuntimeAccessibleApp(_0x4f1d40))throw runtimeInaccessibleAppError(_0x4f1d40,'\x22'+_0x27cae9+'\x22');const _0x464b5a=_0x4f1d40?.['appCode']?.[_0x51283e(0xcd)]();if(_0x464b5a)return _0x464b5a;throw CliErrors[_0x51283e(0xbf)](_0x51283e(0xb2)+_0x27cae9,'Run\x20`'+CLI_BIN_NAME+'\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.'+_0x27cae9+'.appcode\x20to\x20'+PRODUCT_CONFIG[_0x51283e(0xd1)]+'.');}async function assertSelectedAppNameIsRuntimeAccessible(_0x30f8f3,_0xd4d8c2){const _0x198762=a119_0x517c;if(_0x30f8f3['requiresAppCode']===![]||!_0xd4d8c2[_0x198762(0xc5)])return;const _0x43affb=(typeof _0xd4d8c2[_0x198762(0xa5)][_0x198762(0xea)]===_0x198762(0xda)&&_0xd4d8c2[_0x198762(0xa5)][_0x198762(0xea)][_0x198762(0xcd)]()?_0xd4d8c2['rawFlags'][_0x198762(0xea)]:_0xd4d8c2[_0x198762(0xe3)]?.[_0x198762(0xb0)]??_0xd4d8c2[_0x198762(0xe3)]?.[_0x198762(0xd3)])?.[_0x198762(0xcd)]();if(!_0x43affb)return;const {getRemoteAppList:_0x429065}=await import(_0x198762(0xd8)),_0x51a5f2=await _0x429065({'env':_0xd4d8c2[_0x198762(0xe6)]??_0x198762(0xd9),'accessKey':_0xd4d8c2[_0x198762(0xc5)]}),_0x1fdbb8=findAppByName(_0x51a5f2[_0x198762(0xd2)],_0x43affb);if(_0x1fdbb8&&!isRuntimeAccessibleApp(_0x1fdbb8))throw runtimeInaccessibleAppError(_0x1fdbb8,'\x22'+_0x43affb+'\x22');}async function assertAppCodeIsRuntimeAccessible(_0x4d66d3,_0x10ab9c,_0x283e6a){const _0x94c4f6=a119_0x517c;if(_0x4d66d3[_0x94c4f6(0xe4)]===![]||!_0x10ab9c[_0x94c4f6(0xc5)])return;const {getRemoteAppList:_0x291b3c}=await import('../commands/app/remote-source.js'),_0x4a2537=await _0x291b3c({'env':_0x10ab9c[_0x94c4f6(0xe6)]??_0x94c4f6(0xd9),'accessKey':_0x10ab9c[_0x94c4f6(0xc5)]}),_0x5c3a2a=findAppByCode(_0x4a2537[_0x94c4f6(0xd2)],_0x283e6a);if(_0x5c3a2a&&!isRuntimeAccessibleApp(_0x5c3a2a))throw runtimeInaccessibleAppError(_0x5c3a2a,_0x94c4f6(0xad)+_0x283e6a+'\x22');}export async function runCommand(_0x591ea6,_0x3efb12,_0x162a41=terminalRunnerAdapter){const _0x59d6bd=a119_0x517c;assertKnownCommandFlags(_0x591ea6,_0x3efb12[_0x59d6bd(0xa5)]),await runCommandWithAdapter(shouldApplyVersionPolicy(_0x591ea6)?withVersionPolicy(_0x591ea6):_0x591ea6,_0x3efb12,_0x162a41);}function shouldApplyVersionPolicy(_0x5ca48e){const _0x468f95=a119_0x517c;if([_0x468f95(0xd5),'schema',_0x468f95(0xd6)][_0x468f95(0xba)](_0x5ca48e[_0x468f95(0xb1)]))return![];return!(_0x5ca48e[_0x468f95(0xb1)]===_0x468f95(0xcf)&&_0x5ca48e['command']===_0x468f95(0xb9));}function withVersionPolicy(_0x3851fe){return{..._0x3851fe,async 'execute'(_0x583791){const _0x29b0da=a119_0x517c,_0x1cd904=await checkCliVersion();assertCliVersionSupported(_0x1cd904);const _0x4830bf=shouldResolveUpdateNotice(_0x583791)?resolveLatestUpdateNotice(_0x1cd904)[_0x29b0da(0xc7)](()=>null):Promise[_0x29b0da(0xc3)](null),_0x1bc0b0=await _0x3851fe[_0x29b0da(0xe9)](_0x583791);return attachUpdateNotice(_0x1bc0b0,await _0x4830bf);}};}function a119_0x517c(_0x3191e6,_0x1d64bc){_0x3191e6=_0x3191e6-0xa5;const _0x9a2b7=a119_0x9a2b();let _0x517c1f=_0x9a2b7[_0x3191e6];return _0x517c1f;}function shouldResolveUpdateNotice(_0x4cc657){const _0x44cf01=a119_0x517c;return _0x4cc657['format']===_0x44cf01(0xeb)&&!_0x4cc657[_0x44cf01(0xe5)];}function attachUpdateNotice(_0x4b8881,_0x3837ea){const _0x31761e=a119_0x517c;if(!_0x3837ea||!_0x4b8881||typeof _0x4b8881!==_0x31761e(0xcb))return _0x4b8881;const _0x1c8ac5=_0x4b8881,_0x1f98d3=typeof _0x1c8ac5[_0x31761e(0xe2)]===_0x31761e(0xcb)&&_0x1c8ac5['_notice']!==null?_0x1c8ac5[_0x31761e(0xe2)]:{};return{..._0x1c8ac5,'_notice':{..._0x1f98d3,'update':_0x3837ea}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x14b3b2,_0x3cb895){const _0x462e58=a120_0x31ca,_0x3acb88=_0x14b3b2();while(!![]){try{const _0x33ec9d=-parseInt(_0x462e58(0x1a4))/0x1+parseInt(_0x462e58(0x1a1))/0x2+-parseInt(_0x462e58(0x19e))/0x3*(-parseInt(_0x462e58(0x196))/0x4)+-parseInt(_0x462e58(0x199))/0x5+-parseInt(_0x462e58(0x198))/0x6*(-parseInt(_0x462e58(0x197))/0x7)+-parseInt(_0x462e58(0x19a))/0x8*(parseInt(_0x462e58(0x192))/0x9)+-parseInt(_0x462e58(0x19d))/0xa*(-parseInt(_0x462e58(0x1a3))/0xb);if(_0x33ec9d===_0x3cb895)break;else _0x3acb88['push'](_0x3acb88['shift']());}catch(_0x5816ab){_0x3acb88['push'](_0x3acb88['shift']());}}}(a120_0x2504,0xdf17e));function a120_0x31ca(_0x3bfe70,_0xc194a1){_0x3bfe70=_0x3bfe70-0x191;const _0x25044a=a120_0x2504();let _0x31ca08=_0x25044a[_0x3bfe70];return _0x31ca08;}import{buildSchemaPayload as a120_0x55ed9e}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{findDynamicServiceDefinition,listDynamicServiceEntries}from'../commands/service/dynamic.js';import{insertDynamicServicesAfterServiceTree}from'../framework/service-order.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{getCliGitCommit,getCliVersion}from'../utils/version.js';export async function buildSchemaPayload(){const _0x278de5=a120_0x31ca,{serviceRegistry:_0x5586b6,findDefinition:_0xe4579}=await import(_0x278de5(0x19b)),_0x47d845=new Set(_0x5586b6[_0x278de5(0x19c)](_0x1e7849=>_0x1e7849[_0x278de5(0x1a2)])),_0x3a8cea=listDynamicServiceEntries()[_0x278de5(0x194)](_0x465f41=>!_0x47d845['has'](_0x465f41[_0x278de5(0x1a2)])),_0x3cc416=a120_0x55ed9e({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':getCliGitCommit(),'globalFlags':GLOBAL_FLAGS,'serviceRegistry':insertDynamicServicesAfterServiceTree(_0x5586b6,_0x3a8cea),'buildAllFlags':buildAllFlags,'findDefinition':(_0x12bd1b,_0x47c67b)=>_0xe4579(_0x12bd1b,_0x47c67b)??findDynamicServiceDefinition(_0x12bd1b,_0x47c67b)});return normalizeSchemaPayload(_0x3cc416);}function a120_0x2504(){const _0x532259=['map','9730GOmrNZ','22047hERLrN','auth','none','684714ijOSRf','service','4532jEQmdv','1424802qDTzfv','services','13293VCGJuU','requiresAuth','filter','required','712LXQSZJ','203WGgOhI','191442AjuUby','2496140jZADtB','752wNwgWD','../commands/registry.js'];a120_0x2504=function(){return _0x532259;};return a120_0x2504();}function normalizeSchemaPayload(_0x48f21d){const _0x1dba5a=a120_0x31ca;return{..._0x48f21d,'schemaVersion':0x2,'services':_0x48f21d[_0x1dba5a(0x191)][_0x1dba5a(0x19c)](_0x3b9505=>({..._0x3b9505,'commands':_0x3b9505['commands'][_0x1dba5a(0x19c)](normalizeSchemaCommand)}))};}function normalizeSchemaCommand(_0x546c03){const _0x1a9196=a120_0x31ca,_0x4e47db=_0x546c03;return{..._0x546c03,'auth':_0x4e47db[_0x1a9196(0x19f)]??(_0x546c03[_0x1a9196(0x193)]?_0x1a9196(0x195):_0x1a9196(0x1a0))};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2b4f0a,_0x2b6799){const _0x1c741f=a121_0x2ec5,_0x3fde11=_0x2b4f0a();while(!![]){try{const _0x24e387=-parseInt(_0x1c741f(0xe7))/0x1+-parseInt(_0x1c741f(0xdc))/0x2+-parseInt(_0x1c741f(0xe2))/0x3+-parseInt(_0x1c741f(0xe0))/0x4+-parseInt(_0x1c741f(0xdd))/0x5+-parseInt(_0x1c741f(0xe3))/0x6+parseInt(_0x1c741f(0xdf))/0x7*(parseInt(_0x1c741f(0xde))/0x8);if(_0x24e387===_0x2b6799)break;else _0x3fde11['push'](_0x3fde11['shift']());}catch(_0x54a756){_0x3fde11['push'](_0x3fde11['shift']());}}}(a121_0x42e2,0xee39e));function a121_0x42e2(){const _0x46bf4c=['1078iBBXQd','272032anzLSu','slice','3984165wbmzpS','11133144osPzxj','length','findIndex','service','1230115QMcoIW','1834088xpNUpa','6403330HkfHVI','397672YPJRYi'];a121_0x42e2=function(){return _0x46bf4c;};return a121_0x42e2();}function a121_0x2ec5(_0x4c6fce,_0x5ec4bc){_0x4c6fce=_0x4c6fce-0xdc;const _0x42e290=a121_0x42e2();let _0x2ec5d6=_0x42e290[_0x4c6fce];return _0x2ec5d6;}export function insertDynamicServicesAfterServiceTree(_0x14f969,_0x54f982){const _0x1efbd7=a121_0x2ec5;if(_0x54f982[_0x1efbd7(0xe4)]===0x0)return[..._0x14f969];const _0x392120=_0x14f969[_0x1efbd7(0xe5)](_0x20bf3a=>_0x20bf3a[_0x1efbd7(0xe6)]===_0x1efbd7(0xe6));if(_0x392120<0x0)return[..._0x14f969,..._0x54f982];return[..._0x14f969[_0x1efbd7(0xe1)](0x0,_0x392120+0x1),..._0x54f982,..._0x14f969[_0x1efbd7(0xe1)](_0x392120+0x1)];}
|
package/lib/framework/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a122_0x25d3(){var _0x274edc=['9qcEAzF','3225684wUCdfx','116074YivDKo','122868DFSxre','380544pqPlDO','3563370bXbqmg','10101928rljrwM','276Ytynup','11049qbJBzg'];a122_0x25d3=function(){return _0x274edc;};return a122_0x25d3();}(function(_0x505cba,_0x1b1900){var _0x411500=a122_0x52da,_0x96b397=_0x505cba();while(!![]){try{var _0x3aee34=parseInt(_0x411500(0x1ec))/0x1+-parseInt(_0x411500(0x1ed))/0x2+parseInt(_0x411500(0x1f1))/0x3+-parseInt(_0x411500(0x1ea))/0x4+-parseInt(_0x411500(0x1ee))/0x5+-parseInt(_0x411500(0x1f0))/0x6*(-parseInt(_0x411500(0x1eb))/0x7)+parseInt(_0x411500(0x1ef))/0x8*(parseInt(_0x411500(0x1f2))/0x9);if(_0x3aee34===_0x1b1900)break;else _0x96b397['push'](_0x96b397['shift']());}catch(_0xda99b8){_0x96b397['push'](_0x96b397['shift']());}}}(a122_0x25d3,0x6c149));function a122_0x52da(_0x5b2142,_0x32571b){_0x5b2142=_0x5b2142-0x1ea;var _0x25d31e=a122_0x25d3();var _0x52da49=_0x25d31e[_0x5b2142];return _0x52da49;}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const VERSION = "2.3.0
|
|
2
|
-
export declare const GIT_TAG = "v2.3.0
|
|
3
|
-
export declare const GIT_COMMIT = "
|
|
4
|
-
export declare const BUILD_TIME = "2026-08-
|
|
1
|
+
export declare const VERSION = "2.3.0";
|
|
2
|
+
export declare const GIT_TAG = "v2.3.0";
|
|
3
|
+
export declare const GIT_COMMIT = "e7ee9b7";
|
|
4
|
+
export declare const BUILD_TIME = "2026-08-25T08:30:43.148Z";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a123_0x54a5ea=a123_0x23be;(function(_0x4389ac,_0x2aa948){const _0x3475ea=a123_0x23be,_0xe6ee0=_0x4389ac();while(!![]){try{const _0x13b2a4=parseInt(_0x3475ea(0x13e))/0x1+parseInt(_0x3475ea(0x145))/0x2*(parseInt(_0x3475ea(0x147))/0x3)+parseInt(_0x3475ea(0x141))/0x4+-parseInt(_0x3475ea(0x142))/0x5*(parseInt(_0x3475ea(0x148))/0x6)+-parseInt(_0x3475ea(0x143))/0x7+-parseInt(_0x3475ea(0x144))/0x8+parseInt(_0x3475ea(0x146))/0x9;if(_0x13b2a4===_0x2aa948)break;else _0xe6ee0['push'](_0xe6ee0['shift']());}catch(_0x1ab77f){_0xe6ee0['push'](_0xe6ee0['shift']());}}}(a123_0x2bb8,0xf183e));export const VERSION=a123_0x54a5ea(0x140);function a123_0x2bb8(){const _0x43001b=['1472806bSwHZg','v2.3.0','2.3.0','2025672scFPCO','50ykgICa','11554963dpmrBX','6242640wSltwM','1865374KDdywc','5884776IeHUPn','3WhufBa','87294XMlZrA','e7ee9b7'];a123_0x2bb8=function(){return _0x43001b;};return a123_0x2bb8();}function a123_0x23be(_0x5af3c3,_0xec932){_0x5af3c3=_0x5af3c3-0x13e;const _0x2bb887=a123_0x2bb8();let _0x23be38=_0x2bb887[_0x5af3c3];return _0x23be38;}export const GIT_TAG=a123_0x54a5ea(0x13f);export const GIT_COMMIT=a123_0x54a5ea(0x149);export const BUILD_TIME='2026-08-25T08:30:43.148Z';
|
package/lib/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x101a9e,_0x2588db){const _0xa48e62=a124_0x139a,_0x134d4b=_0x101a9e();while(!![]){try{const _0x3e6a76=-parseInt(_0xa48e62(0xdf))/0x1+parseInt(_0xa48e62(0xd9))/0x2+-parseInt(_0xa48e62(0xd7))/0x3+parseInt(_0xa48e62(0xe0))/0x4*(-parseInt(_0xa48e62(0xdd))/0x5)+parseInt(_0xa48e62(0xda))/0x6+parseInt(_0xa48e62(0xdb))/0x7+parseInt(_0xa48e62(0xde))/0x8;if(_0x3e6a76===_0x2588db)break;else _0x134d4b['push'](_0x134d4b['shift']());}catch(_0x419154){_0x134d4b['push'](_0x134d4b['shift']());}}}(a124_0x450b,0xe123c));import{jsx as a124_0x253c5d,jsxs as a124_0x55ce5c}from'react/jsx-runtime';import{useEffect}from'react';import{Box,Text,useApp}from'ink';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';function a124_0x139a(_0x2b65b8,_0x46681d){_0x2b65b8=_0x2b65b8-0xd6;const _0x450b77=a124_0x450b();let _0x139ae0=_0x450b77[_0x2b65b8];return _0x139ae0;}export function Help(){const _0x73641=a124_0x139a,{exit:_0x337b28}=useApp();return useEffect(()=>{_0x337b28();},[_0x337b28]),a124_0x55ce5c(Box,{'flexDirection':'column','marginTop':0x1,'marginBottom':0x1,'children':[a124_0x253c5d(Box,{'children':a124_0x253c5d(Text,{'bold':!![],'color':_0x73641(0xd8),'children':'\x20\x20'+CLI_DISPLAY_NAME})}),a124_0x55ce5c(Box,{'marginTop':0x1,'children':[a124_0x253c5d(Text,{'dimColor':!![],'children':_0x73641(0xdc)}),a124_0x253c5d(Text,{'bold':!![],'color':_0x73641(0xd8),'children':CLI_BIN_NAME+_0x73641(0xd6)}),a124_0x253c5d(Text,{'dimColor':!![],'children':'\x20to\x20view\x20available\x20commands.'})]})]});}function a124_0x450b(){const _0x4b6250=['\x20\x20Use\x20','808105bUVadW','3110216fStEGq','335803UBTpvB','24GRlzSW','\x20--help','1061499ImSdnI','green','2770192TMewCj','2675904JnTtiX','2531739CKeyti'];a124_0x450b=function(){return _0x4b6250;};return a124_0x450b();}
|
package/lib/postinstall.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a125_0x4b33(){const _0x5a0d50=['installedPath','2153547JRByjN','FAILED','20214mIfAuo','1372854FzzuQm','already\x20current','Repair\x20with:\x20','repairCommand','skillVersion','244avPFsd','3009ARfDaK','error','36hGPXXn','\x20at\x20','changed','SOURCE_INVALID','Lovrabet\x20Built-in\x20Skill\x20','code','installed','3822192cGgUCe','19SArmbp','8086160yQkcwP','8840AiKwvR','warn','[BUILTIN_SKILL_INSTALL_'];a125_0x4b33=function(){return _0x5a0d50;};return a125_0x4b33();}(function(_0x985a3e,_0xa2653){const _0x5edda6=a125_0x5b14,_0x36a7ce=_0x985a3e();while(!![]){try{const _0x14429a=parseInt(_0x5edda6(0x1b2))/0x1*(parseInt(_0x5edda6(0x1a1))/0x2)+parseInt(_0x5edda6(0x1a8))/0x3*(-parseInt(_0x5edda6(0x1a7))/0x4)+-parseInt(_0x5edda6(0x19b))/0x5*(-parseInt(_0x5edda6(0x1aa))/0x6)+parseInt(_0x5edda6(0x1a2))/0x7+parseInt(_0x5edda6(0x1b1))/0x8+parseInt(_0x5edda6(0x19f))/0x9+-parseInt(_0x5edda6(0x19a))/0xa;if(_0x14429a===_0xa2653)break;else _0x36a7ce['push'](_0x36a7ce['shift']());}catch(_0x32e1eb){_0x36a7ce['push'](_0x36a7ce['shift']());}}}(a125_0x4b33,0x3c105));import{installBuiltinSkill}from'./skills/builtin-skill.js';function a125_0x5b14(_0x2a25b6,_0x11a9fa){_0x2a25b6=_0x2a25b6-0x19a;const _0x4b338c=a125_0x4b33();let _0x5b14e8=_0x4b338c[_0x2a25b6];return _0x5b14e8;}export async function runPostinstall(_0x11731a={}){const _0xd13b4=a125_0x5b14,_0x1707e4=installBuiltinSkill(_0x11731a);if(_0x1707e4['ok']){const _0x3174b1=_0x1707e4[_0xd13b4(0x1ac)]?_0xd13b4(0x1b0):_0xd13b4(0x1a3),_0x4a569c=_0x1707e4[_0xd13b4(0x19e)]?_0xd13b4(0x1ab)+_0x1707e4[_0xd13b4(0x19e)]:'\x20via\x20skills@latest';return console['log'](_0xd13b4(0x1ae)+_0x1707e4[_0xd13b4(0x1a6)]+'\x20'+_0x3174b1+_0x4a569c),_0x1707e4;}const _0x5a543c=_0xd13b4(0x19d)+(_0x1707e4['code']??_0xd13b4(0x1a0))+']\x20'+(_0x1707e4[_0xd13b4(0x1a9)]??'Installation\x20failed')+'.\x20'+(_0xd13b4(0x1a4)+_0x1707e4[_0xd13b4(0x1a5)]);if(_0x1707e4[_0xd13b4(0x1af)]===_0xd13b4(0x1ad))throw new Error(_0x5a543c);return console[_0xd13b4(0x19c)](_0x5a543c),_0x1707e4;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x10501d,_0x11c3c6){const _0x46dd99=a126_0x5009,_0x1a9655=_0x10501d();while(!![]){try{const _0x2c847d=-parseInt(_0x46dd99(0x11a))/0x1*(parseInt(_0x46dd99(0x11b))/0x2)+-parseInt(_0x46dd99(0x12a))/0x3+parseInt(_0x46dd99(0x123))/0x4+-parseInt(_0x46dd99(0x11d))/0x5+parseInt(_0x46dd99(0x119))/0x6+parseInt(_0x46dd99(0x12c))/0x7+-parseInt(_0x46dd99(0x11f))/0x8*(-parseInt(_0x46dd99(0x120))/0x9);if(_0x2c847d===_0x11c3c6)break;else _0x1a9655['push'](_0x1a9655['shift']());}catch(_0x4ff925){_0x1a9655['push'](_0x1a9655['shift']());}}}(a126_0x26dc,0xe9ae5));const DESCRIPTION_MAX_LENGTH=0x1f4;function a126_0x26dc(){const _0x23a894=['175716AprWxN','description','2285836utYdSg','5003052LKeQdL','677041HPxVuE','4sDPfzp','high-risk-write','7331810rWkHFZ','write','16222224FybGKJ','9jiycMf','replace','trim','2592020uBNDdJ','Run\x20this\x20write\x20operation','slice','string','Lovrabet\x20confirmation\x20requires\x20a\x20write\x20command.','risk','confirmationDescription'];a126_0x26dc=function(){return _0x23a894;};return a126_0x26dc();}export function buildLovrabetConfirmationRequest(_0x58ad02,_0x11b00a,_0x1ad309){const _0x2d48b6=a126_0x5009,_0x51660b=normalizeText(_0x58ad02[_0x2d48b6(0x129)],DESCRIPTION_MAX_LENGTH),_0x49a7ac=normalizeText(_0x58ad02[_0x2d48b6(0x12b)],DESCRIPTION_MAX_LENGTH);return{'operation':_0x11b00a,'risk':requireWriteRisk(_0x58ad02),'description':_0x51660b||_0x49a7ac||_0x2d48b6(0x124),..._0x1ad309?{'signal':_0x1ad309}:{}};}function a126_0x5009(_0xddc455,_0x528d60){_0xddc455=_0xddc455-0x119;const _0x26dcd6=a126_0x26dc();let _0x5009b8=_0x26dcd6[_0xddc455];return _0x5009b8;}function requireWriteRisk(_0x103d7b){const _0x3f1624=a126_0x5009;if(_0x103d7b[_0x3f1624(0x128)]===_0x3f1624(0x11e)||_0x103d7b[_0x3f1624(0x128)]===_0x3f1624(0x11c))return _0x103d7b[_0x3f1624(0x128)];throw new Error(_0x3f1624(0x127));}function normalizeText(_0xa868aa,_0x5cba7c){const _0x1019e1=a126_0x5009;if(typeof _0xa868aa!==_0x1019e1(0x126))return'';return _0xa868aa[_0x1019e1(0x121)](/[\u0000-\u001f\u007f]+/g,'\x20')['replace'](/\s+/g,'\x20')[_0x1019e1(0x122)]()[_0x1019e1(0x125)](0x0,_0x5cba7c);}
|
package/lib/runtime/event.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5246f4,_0x10019d){const _0x466134=a127_0x3acb,_0x1adc3b=_0x5246f4();while(!![]){try{const _0x20bd10=-parseInt(_0x466134(0xdd))/0x1+parseInt(_0x466134(0xd8))/0x2+-parseInt(_0x466134(0xe3))/0x3*(parseInt(_0x466134(0xe1))/0x4)+parseInt(_0x466134(0xdf))/0x5*(parseInt(_0x466134(0xd3))/0x6)+parseInt(_0x466134(0xdb))/0x7*(-parseInt(_0x466134(0xd4))/0x8)+-parseInt(_0x466134(0xde))/0x9+parseInt(_0x466134(0xe0))/0xa;if(_0x20bd10===_0x10019d)break;else _0x1adc3b['push'](_0x1adc3b['shift']());}catch(_0x19997f){_0x1adc3b['push'](_0x1adc3b['shift']());}}}(a127_0x1682,0xb72c1));export function canonicalLovrabetOperation(_0x1c7f90){const _0x5289a1=a127_0x3acb;return[_0x1c7f90[_0x5289a1(0xd5)],..._0x1c7f90[_0x5289a1(0xe5)][_0x5289a1(0xe2)]()['split'](/\s+/)][_0x5289a1(0xdc)](Boolean)[_0x5289a1(0xda)]('.');}export function createLovrabetWriteMetadata(_0x20e7e8,_0x5a93d9,_0x5c62be,_0x59ac1a){const _0x2d18b9=a127_0x3acb;if(_0x59ac1a||_0x5c62be['ok']!==!![]||_0x20e7e8['risk']!==_0x2d18b9(0xd6)&&_0x20e7e8['risk']!==_0x2d18b9(0xd7))return undefined;const _0x1ba0cd=_0x20e7e8[_0x2d18b9(0xe4)]?.(_0x5c62be),_0x21006e={'type':_0x2d18b9(0xd9),'operation':_0x5a93d9,'risk':_0x20e7e8['risk'],..._0x1ba0cd?{'subject':_0x1ba0cd}:{}};return{'lovrabet':{'schemaVersion':0x1,'event':_0x21006e}};}function a127_0x3acb(_0x4ed83e,_0x52a2b3){_0x4ed83e=_0x4ed83e-0xd3;const _0x168298=a127_0x1682();let _0x3acbfb=_0x168298[_0x4ed83e];return _0x3acbfb;}function a127_0x1682(){const _0x3c403f=['7NUDson','filter','1231460TabpdK','4876983LGvVyk','5GPsRDd','13974960YfMZXo','32WfyXbM','trim','165219vvGERA','writeEventSubject','command','3187206OaDAew','1707744TuNvPM','service','write','high-risk-write','2497950eAnTXg','lovrabet.write.completed','join'];a127_0x1682=function(){return _0x3c403f;};return a127_0x1682();}
|
package/lib/runtime/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2d831b,_0xd442f){const _0x4be3d9=a128_0x3024,_0x43ebf7=_0x2d831b();while(!![]){try{const _0xe06233=parseInt(_0x4be3d9(0x1a6))/0x1+-parseInt(_0x4be3d9(0x19a))/0x2*(-parseInt(_0x4be3d9(0x1b5))/0x3)+parseInt(_0x4be3d9(0x1a3))/0x4+parseInt(_0x4be3d9(0x198))/0x5*(parseInt(_0x4be3d9(0x199))/0x6)+parseInt(_0x4be3d9(0x1b9))/0x7+parseInt(_0x4be3d9(0x1b4))/0x8+-parseInt(_0x4be3d9(0x1ab))/0x9*(parseInt(_0x4be3d9(0x1a8))/0xa);if(_0xe06233===_0xd442f)break;else _0x43ebf7['push'](_0x43ebf7['shift']());}catch(_0x1c8b9e){_0x43ebf7['push'](_0x43ebf7['shift']());}}}(a128_0x3edb,0x4a2ab));import{buildConfigFromFlags,initGlobalEnvironment}from'../context.js';import{createLovrabetRunnerAdapter,createPipelineEnv,finalizeLovrabetRuntimeState,runCommand}from'../framework/runner.js';function a128_0x3024(_0x236106,_0xe47665){_0x236106=_0x236106-0x197;const _0x3edbcd=a128_0x3edb();let _0x3024a2=_0x3edbcd[_0x236106];return _0x3024a2;}import{canonicalLovrabetOperation,createLovrabetWriteMetadata}from'../runtime/event.js';import{buildLovrabetConfirmationRequest}from'../runtime/confirmation.js';import{resolveLovrabetInvocation}from'../runtime/resolve.js';function a128_0x3edb(){const _0x2750f8=['reason','50733lZqJuW','risk','result','AbortError','confirmation','Lovrabet\x20invocation\x20aborted.','signal','Embedded\x20Lovrabet\x20confirmation\x20must\x20run\x20inside\x20execute.','stringify','813048DjmAqa','3GzAJWm','args','present','presentation','3746043TWtEIA','riskLevel','rawFlags','412330GJaWng','30ENuxen','246214HwDFMu','format','execute','write','dry-run','yes','definition','message','command','1931976qEeIyt','isNonInteractive','high-risk-write','598978QxUArS','dryRun','3460VrNvnL','Lovrabet\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.'];a128_0x3edb=function(){return _0x2750f8;};return a128_0x3edb();}import{runSerialized}from'../runtime/queue.js';const defaultPresentation={'present'({result:_0x27cd0c,command:_0x5eddc5,risk:_0x1761e5,dryRun:_0x3064bf}){const _0x12dc83=a128_0x3024;return JSON[_0x12dc83(0x1b3)]({'ok':_0x27cd0c['ok'],'command':_0x5eddc5,'risk':_0x1761e5,..._0x3064bf?{'dryRun':!![]}:{},..._0x27cd0c['data']!==undefined?{'data':_0x27cd0c['data']}:{},..._0x27cd0c[_0x12dc83(0x1a1)]?{'message':_0x27cd0c[_0x12dc83(0x1a1)]}:{}});}};export async function invokeLovrabet(_0x4433c7,_0x37977b){const _0x2493b1=a128_0x3024;throwIfAborted(_0x37977b[_0x2493b1(0x1b1)]);const _0x30380c=await resolveLovrabetInvocation(_0x4433c7),_0x15b592=canonicalLovrabetOperation(_0x30380c[_0x2493b1(0x1a0)]);return await confirmWriteBeforeQueue(_0x30380c[_0x2493b1(0x1a0)],_0x30380c[_0x2493b1(0x197)],_0x15b592,_0x37977b),runSerialized(async()=>{const _0x76abb6=_0x2493b1;throwIfAborted(_0x37977b['signal']);const _0x2a539e={},_0x295160=buildConfigFromFlags(_0x30380c[_0x76abb6(0x197)]);await initGlobalEnvironment(_0x295160);const _0x3901be=createPipelineEnv(_0x295160,{..._0x30380c[_0x76abb6(0x197)],'yes':_0x30380c['definition'][_0x76abb6(0x1ac)]==='high-risk-write'?!![]:_0x30380c[_0x76abb6(0x197)][_0x76abb6(0x19f)],'nonInteractive':!![]});_0x3901be['args']=_0x30380c[_0x76abb6(0x1b6)],_0x3901be[_0x76abb6(0x1a4)]=!![],_0x3901be[_0x76abb6(0x1ba)]='high-risk-write';const _0x520d9a=withAbortSignal(_0x30380c['definition'],_0x37977b[_0x76abb6(0x1b1)]),_0x10a816=createLovrabetRunnerAdapter({'formatOutput'(_0x2f9ee3,_0x51fea2){const _0xf665e4=_0x76abb6;_0x2a539e[_0xf665e4(0x1ad)]=_0x2f9ee3,_0x2a539e['command']=_0x51fea2[_0xf665e4(0x1a2)],_0x2a539e[_0xf665e4(0x1ac)]=_0x51fea2['risk'],_0x2a539e['format']=_0x51fea2[_0xf665e4(0x19b)],_0x2a539e[_0xf665e4(0x1a7)]=_0x51fea2[_0xf665e4(0x1a7)]===!![];},async 'confirmHighRisk'(){const _0x27928c=_0x76abb6;throw new Error(_0x27928c(0x1b2));}});try{await runCommand(_0x520d9a,_0x3901be,_0x10a816);if(!_0x2a539e[_0x76abb6(0x1ad)]||!_0x2a539e[_0x76abb6(0x1a2)]||!_0x2a539e['risk']||!_0x2a539e[_0x76abb6(0x19b)])throw new Error(_0x76abb6(0x1a9));const _0x37908f=_0x37977b[_0x76abb6(0x1b8)]??defaultPresentation,_0x2fe8bb=_0x2a539e[_0x76abb6(0x1a7)]===!![],_0x5ccaac={'result':_0x2a539e[_0x76abb6(0x1ad)],'command':_0x2a539e[_0x76abb6(0x1a2)],'operation':_0x15b592,'risk':_0x2a539e['risk'],'format':_0x2a539e[_0x76abb6(0x19b)],'dryRun':_0x2fe8bb},_0x554f60=createLovrabetWriteMetadata(_0x30380c[_0x76abb6(0x1a0)],_0x15b592,_0x2a539e['result'],_0x2fe8bb);let _0x1dc7df;try{_0x1dc7df=await _0x37908f[_0x76abb6(0x1b7)](_0x5ccaac);}catch(_0x15bae2){if(!_0x554f60||_0x37908f===defaultPresentation)throw _0x15bae2;_0x1dc7df=await defaultPresentation[_0x76abb6(0x1b7)](_0x5ccaac);}return{'operation':_0x15b592,'risk':_0x2a539e[_0x76abb6(0x1ac)],'mode':_0x2fe8bb?_0x76abb6(0x19e):_0x76abb6(0x19c),'result':_0x2a539e[_0x76abb6(0x1ad)],'output':_0x1dc7df,..._0x554f60?{'metadata':_0x554f60}:{}};}finally{await finalizeLovrabetRuntimeState();}});}async function confirmWriteBeforeQueue(_0x157994,_0x54253d,_0x200933,_0x264bdb){const _0x1f1fbc=a128_0x3024;if(_0x54253d['dryRun']===!![]||_0x157994[_0x1f1fbc(0x1ac)]!==_0x1f1fbc(0x19d)&&_0x157994['risk']!==_0x1f1fbc(0x1a5))return;await _0x264bdb[_0x1f1fbc(0x1af)]['confirm'](buildLovrabetConfirmationRequest(_0x157994,_0x200933,_0x264bdb[_0x1f1fbc(0x1b1)]));}function withAbortSignal(_0x4d4721,_0x5941ed){return{..._0x4d4721,async 'execute'(_0x40aaeb){const _0x39cd62=a128_0x3024;return throwIfAborted(_0x5941ed),_0x4d4721[_0x39cd62(0x19c)](_0x40aaeb);}};}function throwIfAborted(_0x2db99e){const _0x529716=a128_0x3024;if(_0x2db99e?.['aborted'])throw _0x2db99e[_0x529716(0x1aa)]instanceof Error?_0x2db99e[_0x529716(0x1aa)]:new DOMException(_0x529716(0x1b0),_0x529716(0x1ae));}
|
package/lib/runtime/queue.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a129_0xbc9c62=a129_0x17e6;(function(_0x22b9ea,_0x364507){const _0x133033=a129_0x17e6,_0x238abf=_0x22b9ea();while(!![]){try{const _0x8af402=parseInt(_0x133033(0xbe))/0x1*(parseInt(_0x133033(0xba))/0x2)+-parseInt(_0x133033(0xbc))/0x3*(parseInt(_0x133033(0xb8))/0x4)+parseInt(_0x133033(0xc0))/0x5+parseInt(_0x133033(0xbf))/0x6*(parseInt(_0x133033(0xbd))/0x7)+-parseInt(_0x133033(0xc2))/0x8+parseInt(_0x133033(0xc3))/0x9*(-parseInt(_0x133033(0xb6))/0xa)+parseInt(_0x133033(0xbb))/0xb*(parseInt(_0x133033(0xb9))/0xc);if(_0x8af402===_0x364507)break;else _0x238abf['push'](_0x238abf['shift']());}catch(_0x11661a){_0x238abf['push'](_0x238abf['shift']());}}}(a129_0x3e4e,0xa3d44));function a129_0x17e6(_0x2254da,_0x32ac7f){_0x2254da=_0x2254da-0xb6;const _0x3e4ef5=a129_0x3e4e();let _0x17e66c=_0x3e4ef5[_0x2254da];return _0x17e66c;}let tail=Promise[a129_0xbc9c62(0xb7)]();function a129_0x3e4e(){const _0x5dbf9a=['1636144hyQdQR','20647SALKUj','6vKPTdS','4158vcOjHl','1pfpIrX','6714ZcroBl','3906725ApbDvk','catch','9416632bSPImF','5564277WSVgnt','10WEHRrP','resolve','988188aBpGIN','4452qlDXCQ'];a129_0x3e4e=function(){return _0x5dbf9a;};return a129_0x3e4e();}export async function runSerialized(_0x1563ff){const _0x3aef41=a129_0xbc9c62,_0x11c012=tail;let _0x2f3daf;tail=new Promise(_0x33cecb=>{_0x2f3daf=_0x33cecb;}),await _0x11c012[_0x3aef41(0xc1)](()=>undefined);try{return await _0x1563ff();}finally{_0x2f3daf();}}
|
package/lib/runtime/resolve.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x490585,_0x1b2ea5){const _0x1fa0a4=a130_0x2dfe,_0x50cee7=_0x490585();while(!![]){try{const _0x59257d=-parseInt(_0x1fa0a4(0x70))/0x1+-parseInt(_0x1fa0a4(0x73))/0x2+parseInt(_0x1fa0a4(0x7e))/0x3*(parseInt(_0x1fa0a4(0x7d))/0x4)+-parseInt(_0x1fa0a4(0x72))/0x5+parseInt(_0x1fa0a4(0x7c))/0x6+-parseInt(_0x1fa0a4(0x83))/0x7+parseInt(_0x1fa0a4(0x7a))/0x8*(parseInt(_0x1fa0a4(0x81))/0x9);if(_0x59257d===_0x1b2ea5)break;else _0x50cee7['push'](_0x50cee7['shift']());}catch(_0x315c0a){_0x50cee7['push'](_0x50cee7['shift']());}}}(a130_0x2c1a,0xa59c9));function a130_0x2c1a(){const _0x27a5dc=['args','slice','definition','Lovrabet\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22','19984NMmdLk','unknownCommand','5184318qfqQxK','15448YzoUMV','291tAugVM','validation','input','9567Ylqklz','hint','4963868pSdnJK','flags','assign','1354115OCoEGb','../commands/registry.js','4414225xQGocb','539224fcEBeY','Lovrabet\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.','message'];a130_0x2c1a=function(){return _0x27a5dc;};return a130_0x2c1a();}function a130_0x2dfe(_0x5a51b3,_0x2cdac9){_0x5a51b3=_0x5a51b3-0x6f;const _0x2c1a4c=a130_0x2c1a();let _0x2dfe67=_0x2c1a4c[_0x5a51b3];return _0x2dfe67;}import a130_0x5092dc 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(_0x226f9d){const _0x50f34f=a130_0x2dfe,_0x52b418=a130_0x5092dc('',{'importMeta':import.meta,'argv':_0x226f9d,'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x61b6b=[..._0x52b418[_0x50f34f(0x80)]],_0xc87709=_0x52b418[_0x50f34f(0x84)];await correctFlags(_0xc87709);const _0x422cca=_0x61b6b[0x0];if(!_0x422cca)throw CliErrors['validation'](_0x50f34f(0x74));const _0x58ef8c=resolveRemovedCommand(_0x422cca,_0x61b6b[0x1]);if(_0x58ef8c)throw CliErrors[_0x50f34f(0x7f)](_0x58ef8c[_0x50f34f(0x75)],_0x58ef8c[_0x50f34f(0x82)]);if(!isKnownService(_0x422cca)){const _0x34baca=resolveDynamicServiceCommand(_0x61b6b,_0xc87709);if(!_0x34baca)throw CliErrors[_0x50f34f(0x7b)](_0x61b6b['join']('\x20'));return Object[_0x50f34f(0x6f)](_0xc87709,_0x34baca[_0x50f34f(0x84)]),{'definition':_0x34baca[_0x50f34f(0x78)],'rawFlags':_0xc87709,'args':_0x34baca[_0x50f34f(0x76)]};}const _0x5ee432=getServiceEntry(_0x422cca),_0x32bd3d=_0x61b6b[0x1]||_0x5ee432['defaultCommand'];if(!_0x32bd3d)throw CliErrors[_0x50f34f(0x7f)](_0x50f34f(0x79)+_0x422cca+'\x22.');const _0x2d2fa2=findDefinition(_0x422cca,_0x32bd3d);if(!_0x2d2fa2)throw CliErrors[_0x50f34f(0x7b)](_0x422cca+'\x20'+_0x32bd3d);return{'definition':_0x2d2fa2,'rawFlags':_0xc87709,'args':_0x61b6b[_0x50f34f(0x77)](0x2)};}async function correctFlags(_0x1bfcdd){const _0x69ff48=a130_0x2dfe;try{const {correctFlags:_0x35d882}=await import('../framework/preparse.js'),{getAllDefinitions:_0x36ed90}=await import(_0x69ff48(0x71)),_0x20e5b0=_0x36ed90()['flatMap'](_0x1a06ae=>_0x1a06ae[_0x69ff48(0x84)]??[]),_0x5961a0=_0x35d882(_0x1bfcdd,_0x20e5b0);Object[_0x69ff48(0x6f)](_0x1bfcdd,_0x5961a0['flags']);}catch{}}
|