@lovrabet/lovrabet-cli 2.2.7 → 2.3.0-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.d.ts +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.d.ts +12 -0
- package/lib/commands/config/init.js +1 -0
- package/lib/commands/config/shared.d.ts +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.d.ts +11 -0
- package/lib/config/domain-config.js +1 -0
- package/lib/config/schema.d.ts +7 -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.d.ts +4 -0
- package/lib/constant/distribution.js +1 -1
- package/lib/constant/domain.d.ts +10 -3
- 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.d.ts +52 -14
- package/lib/constant/product.js +1 -1
- package/lib/constant/region.d.ts +15 -0
- package/lib/constant/region.js +1 -0
- package/lib/constant/risk.js +1 -1
- package/lib/constant/url.d.ts +2 -0
- package/lib/constant/url.js +1 -1
- package/lib/context.d.ts +2 -6
- 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.d.ts +2 -0
- 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.d.ts +3 -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/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.d.ts +15 -0
- package/lib/utils/access-key-redaction.js +1 -0
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cli-version-check.d.ts +12 -0
- package/lib/utils/cli-version-check.js +1 -0
- package/lib/utils/cli-version-policy.d.ts +12 -0
- package/lib/utils/cli-version-policy.js +1 -0
- 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.d.ts +2 -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 +3 -1
- package/skills/lovrabet/SKILL.md +11 -12
- package/skills/lovrabet/guides/troubleshooting.md +12 -8
- package/skills/lovrabet/references/lovrabet-app.md +1 -1
- package/skills/lovrabet/references/lovrabet-auth.md +7 -25
- package/skills/lovrabet/references/lovrabet-config-commands.md +42 -5
- package/skills/lovrabet/references/lovrabet-config.md +25 -5
- package/skills/lovrabet.manifest.json +3 -3
package/lib/framework/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x5a5bfc,_0x2c0008){const _0x42e10d=a110_0x35b9,_0x444366=_0x5a5bfc();while(!![]){try{const _0x25a381=-parseInt(_0x42e10d(0x7d))/0x1*(-parseInt(_0x42e10d(0x84))/0x2)+parseInt(_0x42e10d(0x7a))/0x3*(-parseInt(_0x42e10d(0x79))/0x4)+parseInt(_0x42e10d(0x87))/0x5*(-parseInt(_0x42e10d(0x80))/0x6)+parseInt(_0x42e10d(0x8b))/0x7+parseInt(_0x42e10d(0x82))/0x8+parseInt(_0x42e10d(0x7b))/0x9+-parseInt(_0x42e10d(0x81))/0xa;if(_0x25a381===_0x2c0008)break;else _0x444366['push'](_0x444366['shift']());}catch(_0x1ce52f){_0x444366['push'](_0x444366['shift']());}}}(a110_0x4285,0xed023));import{createHelpGenerators}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';import{insertDynamicServicesAfterServiceTree}from'../framework/service-order.js';function a110_0x35b9(_0x3651b3,_0x267d08){_0x3651b3=_0x3651b3-0x79;const _0x4285fb=a110_0x4285();let _0x35b994=_0x4285fb[_0x3651b3];return _0x35b994;}import{serviceRegistry,serviceGroups,getServiceEntry}from'../commands/registry.js';import{getDynamicServiceDefinitions,getDynamicServiceEntry,listDynamicServiceEntries}from'../commands/service/dynamic.js';import{CLI_BIN_NAME,CLI_DISPLAY_NAME,GLOBAL_FLAGS}from'../constant/cli.js';function a110_0x4285(){const _0x309ad0=['14095512spUUAQ','generateServiceHelp','2VEOvCh','map','generateFullHelp','5DfNOYE','filter','service','get','11964673aVdKzO','\x20or\x20--appcode).','4MBmrFX','1186035uOYcRB','2800449gKquDK','generateCommandHelp','1850653XmUKHL','newConfigFileName','has','6478260lVFvbe','31871500qaFMif'];a110_0x4285=function(){return _0x309ad0;};return a110_0x4285();}import{PRODUCT_CONFIG}from'../constant/product.js';function createGenerators(){const _0x575f44=a110_0x35b9;return createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':insertDynamicServicesAfterServiceTree(serviceRegistry,safeListDynamicServiceEntries()),'getServiceEntry':getAnyServiceEntry,'getServiceDefinitions':getAnyServiceDefinitions,'buildAllFlags':buildAllFlags,'appPrerequisiteText':'Requires\x20appcode\x20(set\x20via\x20'+PRODUCT_CONFIG[_0x575f44(0x7e)]+_0x575f44(0x8c)});}export function generateCommandHelp(_0x2e6003){const _0x2aa135=a110_0x35b9;return createGenerators()[_0x2aa135(0x7c)](_0x2e6003);}export function generateServiceHelp(_0x225623){const _0x122abb=a110_0x35b9;return createGenerators()[_0x122abb(0x83)](_0x225623);}export function generateFullHelp(){const _0x41ce46=a110_0x35b9;return createGenerators()[_0x41ce46(0x86)]();}function getAnyServiceEntry(_0x449d66){const _0x1d8482=getServiceEntry(_0x449d66);if(_0x1d8482)return _0x1d8482;try{return getDynamicServiceEntry(_0x449d66);}catch{return undefined;}}function getAnyServiceDefinitions(_0x194fcf){const _0xcf849c=a110_0x35b9,_0x1a6e7e=serviceGroups[_0xcf849c(0x8a)](_0x194fcf);if(_0x1a6e7e)return _0x1a6e7e;try{return getDynamicServiceDefinitions(_0x194fcf);}catch{return undefined;}}function safeListDynamicServiceEntries(){const _0x28004e=a110_0x35b9,_0x4944f9=new Set(serviceRegistry[_0x28004e(0x85)](_0x36d234=>_0x36d234[_0x28004e(0x89)]));try{return listDynamicServiceEntries()[_0x28004e(0x88)](_0x41525a=>!_0x4944f9[_0x28004e(0x7f)](_0x41525a[_0x28004e(0x89)]));}catch{return[];}}
|
package/lib/framework/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a111_0x477f(_0x4c3249,_0x5180dc){_0x4c3249=_0x4c3249-0x9a;var _0x3ef873=a111_0x3ef8();var _0x477f6c=_0x3ef873[_0x4c3249];return _0x477f6c;}(function(_0x44f90e,_0x500d59){var _0x95ce5e=a111_0x477f,_0x36d24a=_0x44f90e();while(!![]){try{var _0x1922d6=-parseInt(_0x95ce5e(0xa0))/0x1*(parseInt(_0x95ce5e(0xa3))/0x2)+-parseInt(_0x95ce5e(0xa5))/0x3*(-parseInt(_0x95ce5e(0xa2))/0x4)+parseInt(_0x95ce5e(0xa4))/0x5*(-parseInt(_0x95ce5e(0xa6))/0x6)+-parseInt(_0x95ce5e(0x9b))/0x7+parseInt(_0x95ce5e(0x9d))/0x8*(parseInt(_0x95ce5e(0x9e))/0x9)+parseInt(_0x95ce5e(0x9c))/0xa*(parseInt(_0x95ce5e(0x9a))/0xb)+parseInt(_0x95ce5e(0xa1))/0xc*(parseInt(_0x95ce5e(0x9f))/0xd);if(_0x1922d6===_0x500d59)break;else _0x36d24a['push'](_0x36d24a['shift']());}catch(_0x157928){_0x36d24a['push'](_0x36d24a['shift']());}}}(a111_0x3ef8,0xe28a9));export{runCommand}from'../framework/runner.js';export{parseFlags,validateFlags}from'../framework/flags.js';export{formatOutput}from'../framework/output.js';export{generateCommandHelp,generateServiceHelp,generateFullHelp}from'../framework/help.js';export{extractList,extractPaging}from'../framework/response.js';export{dryRun}from'../framework/dryrun.js';function a111_0x3ef8(){var _0x1140b2=['5548040jdwaeD','264gbkjlm','137628YAkSGj','117mASbgF','31xSrWND','1396188hMozTZ','12rsizxU','30890GSBWmr','300410nqqmni','198450ULZxpq','12cVKNvK','22njvSur','9330741bWsSbP'];a111_0x3ef8=function(){return _0x1140b2;};return a111_0x3ef8();}export{riskLevelOrder,isValidFormat}from'../framework/types.js';
|
package/lib/framework/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x52d57f,_0x4915e4){const _0x5cf5ec=a112_0x41d3,_0x4767a5=_0x52d57f();while(!![]){try{const _0x5c0faa=parseInt(_0x5cf5ec(0x186))/0x1*(parseInt(_0x5cf5ec(0x187))/0x2)+parseInt(_0x5cf5ec(0x188))/0x3+-parseInt(_0x5cf5ec(0x180))/0x4*(-parseInt(_0x5cf5ec(0x185))/0x5)+parseInt(_0x5cf5ec(0x18b))/0x6+-parseInt(_0x5cf5ec(0x184))/0x7*(-parseInt(_0x5cf5ec(0x18a))/0x8)+parseInt(_0x5cf5ec(0x18c))/0x9+parseInt(_0x5cf5ec(0x182))/0xa*(-parseInt(_0x5cf5ec(0x18d))/0xb);if(_0x5c0faa===_0x4915e4)break;else _0x4767a5['push'](_0x4767a5['shift']());}catch(_0x296a85){_0x4767a5['push'](_0x4767a5['shift']());}}}(a112_0x6118,0x61748));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';function a112_0x41d3(_0x5ebf29,_0x192167){_0x5ebf29=_0x5ebf29-0x17f;const _0x6118f9=a112_0x6118();let _0x41d325=_0x6118f9[_0x5ebf29];return _0x41d325;}const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});function a112_0x6118(){const _0xdaaa03=['update','10417570FORMZF','format','7nFcstd','11945OlyEQg','2985CVTlxn','68psrbbV','468189srBFKJ','url','3048296DLJdrh','4541184LLHSIS','5269914boEczT','22FJVYvD','message','_notice','840pOtpmI'];a112_0x6118=function(){return _0xdaaa03;};return a112_0x6118();}export function formatOutput(_0x4b8499,_0x3f7d4a){const _0x3f5d00=a112_0x41d3,_0x30a788=_0x4b8499[_0x3f5d00(0x17f)],{_notice:_0x1ce9b8,..._0x509fdf}=_0x4b8499;void _0x1ce9b8,baseFormatOutput(_0x509fdf,_0x3f7d4a),_0x3f7d4a[_0x3f5d00(0x183)]==='pretty'&&printPrettyNotice(_0x30a788);}function printPrettyNotice(_0x4a7e7d){const _0x297d58=a112_0x41d3;if(!_0x4a7e7d?.[_0x297d58(0x181)])return;console['error'](_0x4a7e7d[_0x297d58(0x181)][_0x297d58(0x18e)]+'\x20('+_0x4a7e7d[_0x297d58(0x181)][_0x297d58(0x189)]+')');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a113_0xedb0(){const _0x215bae=['help','slice','dry-run','get','toLowerCase','appcode','type','5613zpKorv','version','5707925ajFDpM','number','indexOf','corrected','push','global','alias','env','yes','app','428HGaGuc','6Tigmby','18SkBkCD','dryRun','name','2207464oNCTgU','string','toUpperCase','set','non-interactive','keys','length','add','sticky','6433035KcYMFw','entries','has','original','205998lURUSW','replace','42459769tjIRRn','format','nonInteractive','6YGnund','3819280foIEKr'];a113_0xedb0=function(){return _0x215bae;};return a113_0xedb0();}(function(_0x3f12de,_0x213154){const _0x47e656=a113_0x8340,_0x4cdaec=_0x3f12de();while(!![]){try{const _0x5bbfc8=-parseInt(_0x47e656(0xa5))/0x1*(parseInt(_0x47e656(0x7e))/0x2)+parseInt(_0x47e656(0x87))/0x3*(-parseInt(_0x47e656(0x93))/0x4)+parseInt(_0x47e656(0x89))/0x5*(-parseInt(_0x47e656(0x94))/0x6)+-parseInt(_0x47e656(0xa1))/0x7+parseInt(_0x47e656(0x98))/0x8*(-parseInt(_0x47e656(0x95))/0x9)+parseInt(_0x47e656(0x7f))/0xa+parseInt(_0x47e656(0xa7))/0xb;if(_0x5bbfc8===_0x213154)break;else _0x4cdaec['push'](_0x4cdaec['shift']());}catch(_0x38b8d4){_0x4cdaec['push'](_0x4cdaec['shift']());}}}(a113_0xedb0,0xc60fc));function a113_0x8340(_0x4197bb,_0x197d47){_0x4197bb=_0x4197bb-0x7d;const _0xedb0d9=a113_0xedb0();let _0x8340f7=_0xedb0d9[_0x4197bb];return _0x8340f7;}export function toKebab(_0x3c7ca5){const _0x402211=a113_0x8340;return _0x3c7ca5[_0x402211(0xa6)](/_/g,'-')[_0x402211(0xa6)](/-([A-Z]+)/g,(_0x262c47,_0x5535d9)=>'-'+_0x5535d9[_0x402211(0x84)]())[_0x402211(0xa6)](/([a-z0-9])([A-Z])/g,(_0x56ef2d,_0x2accd4,_0xc939d9)=>_0x2accd4+'-'+_0xc939d9)[_0x402211(0x84)]();}function buildKnownFlags(_0x58752a){const _0x43d279=a113_0x8340,_0x34c9ef=new Set();for(const _0x3e7ca1 of _0x58752a){_0x34c9ef[_0x43d279(0x9f)](_0x3e7ca1[_0x43d279(0x97)]),_0x34c9ef['add'](toCamelCase(_0x3e7ca1['name']));}for(const _0x5022e4 of[_0x43d279(0x82),_0x43d279(0x96),_0x43d279(0x91),_0x43d279(0xa8)]){_0x34c9ef[_0x43d279(0x9f)](_0x5022e4);}for(const _0x4513a3 of[_0x43d279(0x80),_0x43d279(0x90),_0x43d279(0x85),_0x43d279(0x92),_0x43d279(0x7d),_0x43d279(0x9c),'ci',_0x43d279(0x8e),_0x43d279(0x88)]){_0x34c9ef[_0x43d279(0x9f)](_0x4513a3);}return _0x34c9ef;}function buildFlagTypeMap(_0x59a336){const _0x5e4525=a113_0x8340,_0x1b3b3d=new Map();for(const _0x3b165f of _0x59a336){_0x1b3b3d['set'](_0x3b165f[_0x5e4525(0x97)],_0x3b165f['type']),_0x1b3b3d[_0x5e4525(0x9b)](toCamelCase(_0x3b165f[_0x5e4525(0x97)]),_0x3b165f[_0x5e4525(0x86)]);}return _0x1b3b3d;}function toCamelCase(_0xe9120c){const _0x49b28e=a113_0x8340;return _0xe9120c[_0x49b28e(0xa6)](/-([a-z])/g,(_0x257d88,_0x42381d)=>_0x42381d[_0x49b28e(0x9a)]());}function aliasHandler(_0x1e3510,_0x4d0b5b){const _0x5a036a=a113_0x8340,_0x5e1fe4=[];for(const _0x4e72a8 of Object[_0x5a036a(0x9d)](_0x1e3510)){if(_0x4d0b5b[_0x5a036a(0xa3)](_0x4e72a8))continue;const _0x2c9810=toKebab(_0x4e72a8);_0x2c9810!==_0x4e72a8&&_0x4d0b5b[_0x5a036a(0xa3)](_0x2c9810)&&_0x5e1fe4[_0x5a036a(0x8d)]({'original':_0x4e72a8,'corrected':_0x2c9810,'handler':_0x5a036a(0x8f)});}return _0x5e1fe4;}function stickyHandler(_0x5ac580,_0x256fb6,_0x2f44b7){const _0x4958da=a113_0x8340,_0x1ab034=[];for(const [_0x86c26,_0x27949a]of Object[_0x4958da(0xa2)](_0x5ac580)){if(_0x27949a!==!![])continue;for(let _0x3a01de=_0x86c26[_0x4958da(0x9e)]-0x1;_0x3a01de>0x0;_0x3a01de--){const _0x37b2f6=_0x86c26[_0x4958da(0x81)](0x0,_0x3a01de),_0x193780=_0x86c26[_0x4958da(0x81)](_0x3a01de),_0xa6888b=toKebab(_0x37b2f6),_0x1b16c9=toCamelCase(_0x37b2f6),_0x2b0728=_0x256fb6[_0x4958da(0xa3)](_0x37b2f6)?_0x37b2f6:_0x256fb6[_0x4958da(0xa3)](_0xa6888b)?_0xa6888b:_0x256fb6['has'](_0x1b16c9)?_0x1b16c9:null;if(!_0x2b0728)continue;const _0x3f5bfb=_0x2f44b7['get'](_0x2b0728)??_0x4958da(0x99);let _0x516adf;if(_0x3f5bfb===_0x4958da(0x8a)){const _0x451922=Number(_0x193780);if(isNaN(_0x451922)||_0x193780==='')continue;_0x516adf=_0x451922;}else{if(_0x3f5bfb==='boolean')continue;else{if(_0x193780==='')continue;_0x516adf=_0x193780;}}_0x1ab034[_0x4958da(0x8d)]({'original':_0x86c26,'corrected':_0x2b0728+'='+_0x516adf,'handler':_0x4958da(0xa0)});break;}}return _0x1ab034;}export function correctFlags(_0x3f5d4f,_0x5d108b){const _0x4f20b0=a113_0x8340,_0x56a618=buildKnownFlags(_0x5d108b),_0x38c56a=buildFlagTypeMap(_0x5d108b),_0x512720=aliasHandler(_0x3f5d4f,_0x56a618),_0x4d9f5d=stickyHandler(_0x3f5d4f,_0x56a618,_0x38c56a),_0x4bd739=[..._0x512720,..._0x4d9f5d];if(_0x4bd739['length']===0x0)return{'flags':_0x3f5d4f,'corrections':[]};const _0x221d91={..._0x3f5d4f},_0xc8c929=new Set();for(const _0x26abf2 of _0x512720){_0x221d91[_0x26abf2[_0x4f20b0(0x8c)]]=_0x3f5d4f[_0x26abf2[_0x4f20b0(0xa4)]],_0xc8c929['add'](_0x26abf2[_0x4f20b0(0xa4)]);}for(const _0x1d83e6 of _0x4d9f5d){const _0x2baa2b=_0x1d83e6['corrected'][_0x4f20b0(0x8b)]('='),_0x2f0b8c=_0x1d83e6[_0x4f20b0(0x8c)][_0x4f20b0(0x81)](0x0,_0x2baa2b),_0x38e4d1=_0x1d83e6[_0x4f20b0(0x8c)][_0x4f20b0(0x81)](_0x2baa2b+0x1),_0x756cdf=_0x38c56a[_0x4f20b0(0x83)](_0x2f0b8c)??_0x4f20b0(0x99);_0x756cdf===_0x4f20b0(0x8a)?_0x221d91[_0x2f0b8c]=Number(_0x38e4d1):_0x221d91[_0x2f0b8c]=_0x38e4d1,_0xc8c929[_0x4f20b0(0x9f)](_0x1d83e6[_0x4f20b0(0xa4)]);}for(const _0x31037a of _0xc8c929){delete _0x221d91[_0x31037a];}return{'flags':_0x221d91,'corrections':_0x4bd739};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a114_0x402778=a114_0x5251;(function(_0x2e1086,_0x3bde5d){const _0x3c72f1=a114_0x5251,_0x4173a7=_0x2e1086();while(!![]){try{const _0x2c7dc8=parseInt(_0x3c72f1(0x183))/0x1*(parseInt(_0x3c72f1(0x184))/0x2)+-parseInt(_0x3c72f1(0x181))/0x3+-parseInt(_0x3c72f1(0x17c))/0x4*(-parseInt(_0x3c72f1(0x18b))/0x5)+parseInt(_0x3c72f1(0x188))/0x6+-parseInt(_0x3c72f1(0x17b))/0x7*(-parseInt(_0x3c72f1(0x186))/0x8)+-parseInt(_0x3c72f1(0x185))/0x9*(parseInt(_0x3c72f1(0x178))/0xa)+parseInt(_0x3c72f1(0x189))/0xb;if(_0x2c7dc8===_0x3bde5d)break;else _0x4173a7['push'](_0x4173a7['shift']());}catch(_0x3e0868){_0x4173a7['push'](_0x4173a7['shift']());}}}(a114_0x32dd,0xb5f09));import{CliErrors}from'../errors.js';function a114_0x5251(_0x552fe5,_0x1a11e6){_0x552fe5=_0x552fe5-0x173;const _0x32dd60=a114_0x32dd();let _0x5251f2=_0x32dd60[_0x552fe5];return _0x5251f2;}const RATE_LIMIT_ERROR_CODES=new Set([a114_0x402778(0x18d),'MAX_QPS_LIMIT',a114_0x402778(0x177)]);function nonEmptyString(_0xaba186){const _0x538174=a114_0x402778;if(typeof _0xaba186!=='string')return undefined;const _0x5dfba0=_0xaba186[_0x538174(0x18f)]();return _0x5dfba0||undefined;}function a114_0x32dd(){const _0x1c0d4a=['Retry\x20after\x20','status','IP_RATE_LIMIT_EXCEEDED','14252170LiTiTb','\x20Retry\x20only\x20the\x20failed\x20item;\x20keep\x20requests\x20serial\x20and\x20preserve\x20completed\x20checkpoints.','retry-after','194082Gntwxd','4DQJryR','function','message','toUpperCase','number','843999ptjvSs','retryAfterSeconds','3xFwTaI','188970tTdpPb','9OjMoTw','184SMyMwq','call','779292yWtNuK','14421341WjFjqw','object','448545ChDThw','\x20seconds\x20before\x20retrying.','EXCEED_MAX_QPS_LIMIT','Request\x20rate\x20limit\x20exceeded.','trim','test','Retry\x20after\x20a\x20short\x20delay.','Wait\x20','get','toLowerCase'];a114_0x32dd=function(){return _0x1c0d4a;};return a114_0x32dd();}function buildRetryHint(_0x4ce814){const _0x1cf719=a114_0x402778,_0x26daf9=nonEmptyString(_0x4ce814),_0x41f6b6=_0x26daf9?/^\d+$/['test'](_0x26daf9)?_0x1cf719(0x192)+_0x26daf9+_0x1cf719(0x18c):_0x1cf719(0x175)+_0x26daf9+'.':_0x1cf719(0x191);return _0x41f6b6+_0x1cf719(0x179);}export function createRateLimitError(_0xd199c9){const _0x3ac528=a114_0x402778,_0x11db5d=nonEmptyString(_0xd199c9['errorCode'])?.[_0x3ac528(0x17f)](),_0x2b4061=Number(_0xd199c9[_0x3ac528(0x176)])===0x1ad||_0x11db5d!==undefined&&RATE_LIMIT_ERROR_CODES['has'](_0x11db5d);if(!_0x2b4061)return undefined;return CliErrors['rateLimited'](nonEmptyString(_0xd199c9[_0x3ac528(0x17e)])??_0x3ac528(0x18e),buildRetryHint(_0xd199c9['retryAfter']));}export function readRetryAfter(_0x232bca){const _0x5a50b1=a114_0x402778;if(!_0x232bca||typeof _0x232bca!==_0x5a50b1(0x18a))return undefined;const _0x505294=_0x232bca[_0x5a50b1(0x173)];if(typeof _0x505294===_0x5a50b1(0x17d)){const _0x156d91=_0x505294[_0x5a50b1(0x187)](_0x232bca,'Retry-After')??_0x505294[_0x5a50b1(0x187)](_0x232bca,_0x5a50b1(0x17a));return nonEmptyString(_0x156d91);}for(const [_0x1c7eae,_0x1c0290]of Object['entries'](_0x232bca)){if(_0x1c7eae[_0x5a50b1(0x174)]()===_0x5a50b1(0x17a))return nonEmptyString(_0x1c0290)??(typeof _0x1c0290==='number'?String(_0x1c0290):undefined);}return undefined;}export function readRetryAfterSeconds(_0x2520be){const _0x4464e4=a114_0x402778;if(!_0x2520be||typeof _0x2520be!==_0x4464e4(0x18a)||Array['isArray'](_0x2520be))return undefined;const _0x52624f=_0x2520be[_0x4464e4(0x182)];if(typeof _0x52624f===_0x4464e4(0x180))return Number['isInteger'](_0x52624f)&&_0x52624f>=0x0?String(_0x52624f):undefined;const _0x1f3c4c=nonEmptyString(_0x52624f);return _0x1f3c4c&&/^\d+$/[_0x4464e4(0x190)](_0x1f3c4c)?_0x1f3c4c:undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a115_0x3421(_0xee1d52,_0x32d850){_0xee1d52=_0xee1d52-0x151;const _0x12dc89=a115_0x12dc();let _0x3421f8=_0x12dc89[_0xee1d52];return _0x3421f8;}const a115_0x482073=a115_0x3421;(function(_0x44736c,_0x4f21c1){const _0x4846ff=a115_0x3421,_0x3de0a0=_0x44736c();while(!![]){try{const _0x5f232f=-parseInt(_0x4846ff(0x159))/0x1+parseInt(_0x4846ff(0x163))/0x2+parseInt(_0x4846ff(0x173))/0x3*(-parseInt(_0x4846ff(0x176))/0x4)+parseInt(_0x4846ff(0x16c))/0x5+parseInt(_0x4846ff(0x15e))/0x6*(parseInt(_0x4846ff(0x168))/0x7)+parseInt(_0x4846ff(0x151))/0x8*(-parseInt(_0x4846ff(0x15d))/0x9)+-parseInt(_0x4846ff(0x169))/0xa*(-parseInt(_0x4846ff(0x153))/0xb);if(_0x5f232f===_0x4f21c1)break;else _0x3de0a0['push'](_0x3de0a0['shift']());}catch(_0x4c658b){_0x3de0a0['push'](_0x3de0a0['shift']());}}}(a115_0x12dc,0x316d5));import{CliErrors}from'../errors.js';import{CLI_BIN_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{toKebab}from'../framework/preparse.js';const FILTER_BODY_FIELDS=new Set([a115_0x482073(0x156),a115_0x482073(0x16d),a115_0x482073(0x164),a115_0x482073(0x15a),a115_0x482073(0x15c),a115_0x482073(0x16a),a115_0x482073(0x172),a115_0x482073(0x155),a115_0x482073(0x167)]);function a115_0x12dc(){const _0x165497=['validation','add','name','\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20','page','30QFroPo','Run\x20`','Unknown\x20flag\x20--','111272wthjgj','2437824EAvlMI','version','66KMiXBO','entries','page-size','where','command','no-','196057pQqagk','orderby','\x20for\x20`','current-page','9aSkKBv','1266fMAbPM','service','filter','flags','has','315602UvSLAV','order-by','data','meowKey','pagesize','5026FvDclg','936970hHgWxU','currentpage','stringify','549685PrSoXX','select'];a115_0x12dc=function(){return _0x165497;};return a115_0x12dc();}export function assertKnownCommandFlags(_0x4f0346,_0x2383b8){const _0x1b833e=a115_0x482073,_0x3255da=new Set([_0x1b833e(0x152)]);for(const _0x123241 of GLOBAL_FLAGS){_0x3255da['add'](_0x123241[_0x1b833e(0x170)]),_0x3255da[_0x1b833e(0x16f)](toKebab(_0x123241[_0x1b833e(0x166)]));}for(const _0x4999b7 of _0x4f0346[_0x1b833e(0x161)]??[]){_0x3255da['add'](_0x4999b7[_0x1b833e(0x170)]);}for(const [_0x3eb4f5,_0x1ea710]of Object[_0x1b833e(0x154)](_0x2383b8)){const _0x281165=toKebab(_0x3eb4f5);if(_0x3255da['has'](_0x281165))continue;if(_0x1ea710===![]&&_0x3255da[_0x1b833e(0x162)](_0x1b833e(0x158)+_0x281165))continue;if(_0x4f0346['service']===_0x1b833e(0x165)&&_0x4f0346['command']===_0x1b833e(0x160)&&FILTER_BODY_FIELDS[_0x1b833e(0x162)](_0x281165))throw CliErrors[_0x1b833e(0x16e)]('--'+_0x281165+'\x20is\x20not\x20a\x20CLI\x20flag\x20for\x20`'+CLI_BIN_NAME+'\x20data\x20filter`.','Put\x20where,\x20select,\x20orderBy,\x20currentPage,\x20and\x20pageSize\x20inside\x20one\x20--params\x20JSON\x20object.\x20'+('Example:\x20'+CLI_BIN_NAME+_0x1b833e(0x171))+('\x27'+JSON[_0x1b833e(0x16b)]({'where':{'status':{'$eq':'active'}},'orderBy':[{'id':'asc'}],'currentPage':0x1,'pageSize':0x14})+'\x27'));throw CliErrors[_0x1b833e(0x16e)](_0x1b833e(0x175)+_0x281165+_0x1b833e(0x15b)+CLI_BIN_NAME+'\x20'+_0x4f0346['service']+'\x20'+_0x4f0346['command']+'`.',_0x1b833e(0x174)+CLI_BIN_NAME+'\x20'+_0x4f0346[_0x1b833e(0x15f)]+'\x20'+_0x4f0346[_0x1b833e(0x157)]+'\x20--help`\x20to\x20see\x20accepted\x20flags.');}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x39c263,_0xf27437){var _0x5ae4db=a116_0xd0ec,_0x58b568=_0x39c263();while(!![]){try{var _0x58ff1e=parseInt(_0x5ae4db(0x124))/0x1*(parseInt(_0x5ae4db(0x126))/0x2)+-parseInt(_0x5ae4db(0x121))/0x3*(parseInt(_0x5ae4db(0x11e))/0x4)+parseInt(_0x5ae4db(0x120))/0x5*(parseInt(_0x5ae4db(0x11d))/0x6)+-parseInt(_0x5ae4db(0x122))/0x7*(-parseInt(_0x5ae4db(0x11a))/0x8)+-parseInt(_0x5ae4db(0x11c))/0x9+-parseInt(_0x5ae4db(0x123))/0xa*(parseInt(_0x5ae4db(0x11b))/0xb)+parseInt(_0x5ae4db(0x125))/0xc*(parseInt(_0x5ae4db(0x11f))/0xd);if(_0x58ff1e===_0xf27437)break;else _0x58b568['push'](_0x58b568['shift']());}catch(_0x16c00e){_0x58b568['push'](_0x58b568['shift']());}}}(a116_0x3cc5,0xae17d));export{extractList,extractPaging}from'@lovrabet/cli-framework';function a116_0xd0ec(_0x2c1f43,_0xb465cb){_0x2c1f43=_0x2c1f43-0x11a;var _0x3cc550=a116_0x3cc5();var _0xd0eccd=_0x3cc550[_0x2c1f43];return _0xd0eccd;}function a116_0x3cc5(){var _0x509f6d=['352TSQoYh','11517138YESLwZ','6GfTgKi','4unwsHM','13eBuqZY','2541355yjAYCn','4200486fjOzJs','91jrdFPQ','101760PSaxov','262855AYSqGr','34424640cjMtQX','2xWclkF','48440BtjNwZ'];a116_0x3cc5=function(){return _0x509f6d;};return a116_0x3cc5();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x2d46bb,_0x2139d8){const _0x198e58=a117_0x28cd,_0x3d3a2d=_0x2d46bb();while(!![]){try{const _0x48632f=-parseInt(_0x198e58(0x1ce))/0x1+parseInt(_0x198e58(0x1b8))/0x2*(-parseInt(_0x198e58(0x1d6))/0x3)+-parseInt(_0x198e58(0x1c8))/0x4*(-parseInt(_0x198e58(0x1c6))/0x5)+parseInt(_0x198e58(0x1d7))/0x6*(parseInt(_0x198e58(0x1c3))/0x7)+parseInt(_0x198e58(0x1ca))/0x8+-parseInt(_0x198e58(0x1ba))/0x9+parseInt(_0x198e58(0x1b7))/0xa*(parseInt(_0x198e58(0x1b6))/0xb);if(_0x48632f===_0x2139d8)break;else _0x3d3a2d['push'](_0x3d3a2d['shift']());}catch(_0x549729){_0x3d3a2d['push'](_0x3d3a2d['shift']());}}}(a117_0x17cb,0xef55d));import{CLI_BIN_NAME}from'../constant/cli.js';export function buildConfirmationLines(_0x4f53c5,_0x3663f6,_0x3d5a62){const _0x104186=a117_0x28cd,_0x57a38a=buildConfirmationContext(_0x4f53c5,_0x3663f6,_0x3d5a62),_0x5c583f=[_0x104186(0x1cc)+_0x57a38a[_0x104186(0x1c7)]];return _0x57a38a[_0x104186(0x1bb)]&&_0x5c583f[_0x104186(0x1c4)](_0x104186(0x1bf)+_0x57a38a['description']),_0x57a38a[_0x104186(0x1cb)]&&_0x5c583f[_0x104186(0x1c4)](_0x104186(0x1d4)+_0x57a38a[_0x104186(0x1cb)]),_0x5c583f['push'](_0x104186(0x1bc)),_0x5c583f;}function a117_0x28cd(_0x4a708c,_0x2ce586){_0x4a708c=_0x4a708c-0x1b6;const _0x17cbe2=a117_0x17cb();let _0x28cde7=_0x17cbe2[_0x4a708c];return _0x28cde7;}export function reconstructCommandArgv(_0x369fd9,_0x3f05f0){const _0x203508=a117_0x28cd,_0xd69a84=[CLI_BIN_NAME,_0x369fd9['service'],_0x369fd9[_0x203508(0x1b9)]];for(const [_0x13b9d5,_0x5030be]of Object[_0x203508(0x1d8)](_0x3f05f0)){if(_0x5030be===!![])_0xd69a84[_0x203508(0x1c4)]('--'+_0x13b9d5);else _0x5030be!==![]&&_0x5030be!==undefined&&_0x5030be!==''&&_0xd69a84[_0x203508(0x1c4)]('--'+_0x13b9d5+'\x20'+JSON[_0x203508(0x1cd)](_0x5030be));}return _0xd69a84[_0x203508(0x1c4)]('--yes'),_0xd69a84[_0x203508(0x1d1)]('\x20');}function buildConfirmationContext(_0x4ec21a,_0x5b43eb,_0x2f2e44){const _0x12f37a=a117_0x28cd,_0x1363db=extractAffectedRecords(_0x2f2e44);return{'commandLabel':_0x5b43eb,'description':_0x4ec21a[_0x12f37a(0x1bb)],'affectedRecords':_0x1363db};}function extractAffectedRecords(_0x3140f7){const _0x3d8308=a117_0x28cd,_0x3d9b35=[];if(_0x3140f7['code'])_0x3d9b35[_0x3d8308(0x1c4)](_0x3d8308(0x1d5)+_0x3140f7[_0x3d8308(0x1d9)]);if(_0x3140f7['id'])_0x3d9b35[_0x3d8308(0x1c4)]('id='+_0x3140f7['id']);if(_0x3140f7[_0x3d8308(0x1cf)])_0x3d9b35['push'](_0x3d8308(0x1c9)+_0x3140f7['schedule-id']);if(_0x3140f7['name'])_0x3d9b35[_0x3d8308(0x1c4)]('name='+_0x3140f7[_0x3d8308(0x1d3)]);if(_0x3140f7['title'])_0x3d9b35[_0x3d8308(0x1c4)]('title='+_0x3140f7['title']);if(_0x3140f7[_0x3d8308(0x1c2)])_0x3d9b35[_0x3d8308(0x1c4)](_0x3d8308(0x1c1)+_0x3140f7[_0x3d8308(0x1c2)]);if(_0x3140f7[_0x3d8308(0x1d0)])_0x3d9b35['push'](_0x3d8308(0x1da)+_0x3140f7['cron']);if(_0x3140f7['scheduled-at'])_0x3d9b35[_0x3d8308(0x1c4)](_0x3d8308(0x1bd)+_0x3140f7[_0x3d8308(0x1c0)]);if(_0x3140f7[_0x3d8308(0x1d2)])_0x3d9b35[_0x3d8308(0x1c4)]('channel='+_0x3140f7[_0x3d8308(0x1d2)]);if(_0x3140f7[_0x3d8308(0x1db)])_0x3d9b35[_0x3d8308(0x1c4)](_0x3d8308(0x1c5)+_0x3140f7[_0x3d8308(0x1db)]);return _0x3d9b35[_0x3d8308(0x1be)]>0x0?_0x3d9b35['join'](',\x20'):undefined;}function a117_0x17cb(){const _0x4bb4b7=['name','\x20\x20\x20Affected:\x20','code=','976443UfomFt','125508GmiaWq','entries','code','cron=','params','21896699UBzlWO','10xpjXNr','10OHNHpZ','command','11297961bErmeJ','description','\x20\x20\x20Continue?\x20[y/N]\x20','scheduled-at=','length','\x20\x20\x20','scheduled-at','kind=','kind','434HCawOL','push','params=','11430QTZYsS','commandLabel','1084NvCjCF','schedule-id=','6578264Mvooiq','affectedRecords','⚠\x20\x20High-risk\x20operation:\x20','stringify','866263wntJdM','schedule-id','cron','join','channel'];a117_0x17cb=function(){return _0x4bb4b7;};return a117_0x17cb();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0xa8450b,_0x4ecba8){const _0x5dd58e=a118_0x397d,_0x30b86b=_0xa8450b();while(!![]){try{const _0xcd5e00=parseInt(_0x5dd58e(0x1e9))/0x1+parseInt(_0x5dd58e(0x1dd))/0x2*(parseInt(_0x5dd58e(0x1e3))/0x3)+-parseInt(_0x5dd58e(0x1e8))/0x4+-parseInt(_0x5dd58e(0x1da))/0x5+-parseInt(_0x5dd58e(0x1db))/0x6+-parseInt(_0x5dd58e(0x1dc))/0x7+parseInt(_0x5dd58e(0x1e2))/0x8*(parseInt(_0x5dd58e(0x1e5))/0x9);if(_0xcd5e00===_0x4ecba8)break;else _0x30b86b['push'](_0x30b86b['shift']());}catch(_0x86703a){_0x30b86b['push'](_0x30b86b['shift']());}}}(a118_0x1c88,0x19b7a));import{LovrabetError}from'@lovrabet/sdk';import{CliErrors}from'../errors.js';import{createRateLimitError,readRetryAfter,readRetryAfterSeconds}from'../framework/rate-limit.js';function a118_0x397d(_0x3b84fd,_0x1dc957){_0x3b84fd=_0x3b84fd-0x1da;const _0x1c8899=a118_0x1c88();let _0x397d51=_0x1c8899[_0x3b84fd];return _0x397d51;}export function mapUserFacingExecuteError(_0x30cb04){const _0x50abb5=a118_0x397d;if(_0x30cb04 instanceof LovrabetError){const _0x5ec8f1=userFacingLovrabetMessage(_0x30cb04),_0x14f99a=_0x30cb04,_0x1ef8f8=createRateLimitError({'status':_0x14f99a[_0x50abb5(0x1e4)],'errorCode':_0x14f99a[_0x50abb5(0x1e0)],'message':_0x5ec8f1,'retryAfter':readRetryAfter(_0x14f99a['response']?.[_0x50abb5(0x1e6)])??readRetryAfterSeconds(_0x14f99a[_0x50abb5(0x1e1)])});return _0x1ef8f8??CliErrors['validation'](_0x5ec8f1);}return _0x30cb04;}function a118_0x1c88(){const _0x5e265d=['776586nrEpEr','1455916kSTVNH','4898TOQgjw','trim','message','code','response','8NlDaPs','249gfmZMH','status','2900223QSAVAA','headers','stringify','348444jRgDwq','153423ppxbVM','745345hOROjp'];a118_0x1c88=function(){return _0x5e265d;};return a118_0x1c88();}function userFacingLovrabetMessage(_0x5cf88e){const _0x20611b=a118_0x397d,_0x580fa3=_0x5cf88e['description'];if(_0x580fa3!==undefined&&_0x580fa3!==null){if(typeof _0x580fa3==='string'&&_0x580fa3[_0x20611b(0x1de)]())return _0x580fa3['trim']();try{return JSON[_0x20611b(0x1e7)](_0x580fa3);}catch{}}return _0x5cf88e[_0x20611b(0x1df)];}
|
|
@@ -48,8 +48,10 @@ export interface PipelineEnv {
|
|
|
48
48
|
appCode: string | undefined;
|
|
49
49
|
/** Source used to resolve `appCode`, used to revalidate explicit `--app`. */
|
|
50
50
|
appCodeSource?: CLIConfig["appCodeSource"];
|
|
51
|
-
/**
|
|
51
|
+
/** Platform API origin resolved from explicit config or Region. */
|
|
52
52
|
apiDomain: string;
|
|
53
|
+
/** Final Runtime engine origin resolved from explicit config or Region. */
|
|
54
|
+
runtimeDomain: string;
|
|
53
55
|
/** `true` when running in CI or when `--non-interactive` was supplied. */
|
|
54
56
|
isNonInteractive: boolean;
|
|
55
57
|
/** Default format from the config file (falls through to --format). */
|
package/lib/framework/runner.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x257915,_0x11726f){const _0x4ad29f=a116_0x1c64,_0x6d00d9=_0x257915();while(!![]){try{const _0x157222=parseInt(_0x4ad29f(0xc0))/0x1*(-parseInt(_0x4ad29f(0xbf))/0x2)+parseInt(_0x4ad29f(0xc1))/0x3*(parseInt(_0x4ad29f(0xa2))/0x4)+-parseInt(_0x4ad29f(0xa0))/0x5+parseInt(_0x4ad29f(0xa8))/0x6*(parseInt(_0x4ad29f(0xd3))/0x7)+parseInt(_0x4ad29f(0xcd))/0x8+parseInt(_0x4ad29f(0xde))/0x9+parseInt(_0x4ad29f(0xcf))/0xa*(-parseInt(_0x4ad29f(0xab))/0xb);if(_0x157222===_0x11726f)break;else _0x6d00d9['push'](_0x6d00d9['shift']());}catch(_0xfb0306){_0x6d00d9['push'](_0x6d00d9['shift']());}}}(a116_0x545c,0x4a399));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}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{findAppByCode,findAppByName,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../commands/app/eligibility.js';export function resolveAuthMode(_0x3b8f2b){const _0xd023b4=a116_0x1c64;return void _0x3b8f2b,AUTH_MODE[_0xd023b4(0xdc)];}function a116_0x1c64(_0x42e61d,_0x413899){_0x42e61d=_0x42e61d-0xa0;const _0x545c1b=a116_0x545c();let _0x1c6499=_0x545c1b[_0x42e61d];return _0x1c6499;}let sdkClientInitialized=![];export function createPipelineEnv(_0x28c5d7,_0x470dd8){const _0x5d16f1=a116_0x1c64,_0x2122e0=typeof _0x470dd8[_0x5d16f1(0xc8)]===_0x5d16f1(0xca)&&_0x470dd8[_0x5d16f1(0xc8)][_0x5d16f1(0xdf)]();return{'rawFlags':_0x470dd8,'appCode':_0x28c5d7[_0x5d16f1(0xbb)]||productEnv(_0x5d16f1(0xce))||(_0x2122e0?undefined:readAppCodeFromConfig()),'appCodeSource':_0x28c5d7[_0x5d16f1(0xe2)],'apiDomain':getApiDomain(),'isNonInteractive':isNonInteractiveMode(_0x470dd8),'defaultFormat':_0x28c5d7['format'],'defaultPageSize':_0x28c5d7[_0x5d16f1(0xc4)],'defaultVerbose':_0x28c5d7[_0x5d16f1(0xa9)],'riskLevel':_0x28c5d7[_0x5d16f1(0xdd)],'accessKey':_0x28c5d7['accessKey'],'env':_0x28c5d7[_0x5d16f1(0xb1)],'mergedCli':{'defaultApp':_0x28c5d7['defaultApp'],'currentApp':_0x28c5d7[_0x5d16f1(0xc2)],'appCode':_0x28c5d7[_0x5d16f1(0xbb)]}};}export function createLovrabetRunnerAdapter(_0x5529d2={}){const _0xe6fdf4=a116_0x1c64,_0x21a427={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0xe6fdf4(0xdb)](_0x5395f3=>PIPELINE_FLAG_NAMES[_0xe6fdf4(0xbc)](_0x5395f3[_0xe6fdf4(0xb8)]))[_0xe6fdf4(0xaf)](({name:_0x1972c4,type:_0x1ebbd2,description:_0x392eea})=>({'name':_0x1972c4,'type':_0x1ebbd2,'description':_0x392eea})),'formatOutput':_0x5529d2[_0xe6fdf4(0xbd)]??formatOutput,'getCommandLabel'(_0x2e9c04){const _0x1462a5=_0xe6fdf4;return CLI_BIN_NAME+'\x20'+_0x2e9c04[_0x1462a5(0xc9)]+'\x20'+_0x2e9c04[_0x1462a5(0xd1)];},'riskPolicy':{'onViolation'(_0x507866){const _0x1dc778=_0xe6fdf4;console[_0x1dc778(0xa4)](_0x507866);},'createError'(_0x3d03e0){const _0x8768cf=_0xe6fdf4;return CliErrors[_0x8768cf(0xd9)](_0x3d03e0);}},async 'prepare'(_0x27a8a4,_0x2c956e){const _0x2f4132=_0xe6fdf4,_0x3b1add=resolveAuthMode(_0x2c956e);if(_0x27a8a4['requiresAuth']!==![]){if(!_0x2c956e['accessKey'])throw CliErrors['authRequired'](_0x2f4132(0xba)+PRODUCT_CONFIG['newConfigFileName']+_0x2f4132(0xb3)+productEnvName(_0x2f4132(0xc6))+'.');const {setActiveAK:_0x484288}=await import(_0x2f4132(0xcb));_0x484288(_0x2c956e[_0x2f4132(0xad)]);}let _0x3a14d0='';if(_0x27a8a4['requiresAppCode']!==![]){_0x3a14d0=_0x2c956e['appCode']??'',_0x3a14d0=await resolveExplicitAppName(_0x27a8a4,_0x2c956e,_0x3a14d0);if(!_0x3a14d0){await assertSelectedAppNameIsRuntimeAccessible(_0x27a8a4,_0x2c956e);throw CliErrors[_0x2f4132(0xd7)](_0x2f4132(0xc7)+PRODUCT_CONFIG[_0x2f4132(0xbe)]+'.');}await assertAppCodeIsRuntimeAccessible(_0x27a8a4,_0x2c956e,_0x3a14d0);}if(_0x3a14d0){const {initSdkClient:_0x159492}=await import(_0x2f4132(0xb7));_0x159492({'appCode':_0x3a14d0,'env':_0x2c956e[_0x2f4132(0xb1)]??_0x2f4132(0xa5),'accessKey':_0x2c956e[_0x2f4132(0xad)],'authMode':_0x3b1add}),sdkClientInitialized=!![];}return{'defaults':{'booleans':{'verbose':_0x2c956e['defaultVerbose']},'numbers':{'pagesize':_0x2c956e[_0x2f4132(0xb9)]}},'extras':{'appCode':_0x3a14d0,'cookie':'','apiDomain':_0x2c956e[_0x2f4132(0xd6)],'apiDir':'','accessKey':_0x2c956e[_0x2f4132(0xad)],'envName':_0x2c956e['env'],'mergedCli':_0x2c956e['mergedCli']}};},'confirmHighRisk':_0x5529d2[_0xe6fdf4(0xd0)]??(async({def:_0x294235,env:_0x4d4415,flags:_0x3dc23b,commandLabel:_0x1d3853})=>{const _0x1f2073=_0xe6fdf4;if(_0x4d4415['isNonInteractive']){const _0x4e144d=reconstructCommandArgv(_0x294235,_0x3dc23b);throw CliErrors[_0x1f2073(0xe0)](_0x1f2073(0xa1)+_0x1d3853+'`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a'+('\x20\x20To\x20proceed:\x20'+_0x4e144d));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0x294235,_0x1d3853,_0x3dc23b),'createCancelledError':_0x71d0cb=>CliErrors[_0x1f2073(0xd9)](_0x71d0cb)});}),'mapDryRunError'(_0x554be0){return mapUserFacingExecuteError(_0x554be0);},'mapExecuteError'(_0x3fa9af){return mapUserFacingExecuteError(_0x3fa9af);},async 'finalize'(){await finalizeLovrabetRuntimeState();}};return _0x21a427;}const terminalRunnerAdapter=createLovrabetRunnerAdapter();export async function finalizeLovrabetRuntimeState(){const _0x148462=a116_0x1c64;try{if(sdkClientInitialized){const {clearSdkClient:_0x242c79}=await import(_0x148462(0xb7));_0x242c79();}}finally{sdkClientInitialized=![];const {clearActiveAK:_0x54969b}=await import('../core/api-client.js');_0x54969b();}}async function resolveExplicitAppName(_0x59136d,_0x3e267f,_0x33ab52){const _0x4e36de=a116_0x1c64;if(_0x59136d['requiresAppCode']===![])return _0x33ab52;const _0xc28385=typeof _0x3e267f[_0x4e36de(0xc5)]['app']==='string'?_0x3e267f[_0x4e36de(0xc5)]['app'][_0x4e36de(0xdf)]():'';if(!_0xc28385)return _0x33ab52;const _0x2499b7=typeof _0x3e267f[_0x4e36de(0xc5)][_0x4e36de(0xe1)]===_0x4e36de(0xca)&&_0x3e267f['rawFlags'][_0x4e36de(0xe1)][_0x4e36de(0xdf)]()||productEnv(_0x4e36de(0xce));if(_0x2499b7||_0x3e267f[_0x4e36de(0xe2)]===_0x4e36de(0xda))return _0x33ab52;const {getRemoteAppList:_0x5aa1d5}=await import(_0x4e36de(0xcc)),_0x31d116=await _0x5aa1d5({'env':_0x3e267f['env']??'production','accessKey':_0x3e267f[_0x4e36de(0xad)]}),_0x569336=findAppByName(_0x31d116[_0x4e36de(0xd4)],_0xc28385);if(_0x569336&&!isRuntimeAccessibleApp(_0x569336))throw runtimeInaccessibleAppError(_0x569336,'\x22'+_0xc28385+'\x22');const _0x2a9428=_0x569336?.[_0x4e36de(0xbb)]?.[_0x4e36de(0xdf)]();if(_0x2a9428)return _0x2a9428;throw CliErrors[_0x4e36de(0xe0)](_0x4e36de(0xb0)+_0xc28385,_0x4e36de(0xa6)+CLI_BIN_NAME+'\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.'+_0xc28385+_0x4e36de(0xb6)+PRODUCT_CONFIG[_0x4e36de(0xbe)]+'.');}async function assertSelectedAppNameIsRuntimeAccessible(_0x4b3600,_0x3273b9){const _0x49fe59=a116_0x1c64;if(_0x4b3600['requiresAppCode']===![]||!_0x3273b9[_0x49fe59(0xad)])return;const _0x20494c=(typeof _0x3273b9[_0x49fe59(0xc5)]['app']===_0x49fe59(0xca)&&_0x3273b9['rawFlags'][_0x49fe59(0xc8)]['trim']()?_0x3273b9[_0x49fe59(0xc5)][_0x49fe59(0xc8)]:_0x3273b9[_0x49fe59(0xa7)]?.['currentApp']??_0x3273b9[_0x49fe59(0xa7)]?.[_0x49fe59(0xae)])?.['trim']();if(!_0x20494c)return;const {getRemoteAppList:_0x3cd3cf}=await import('../commands/app/remote-source.js'),_0x203719=await _0x3cd3cf({'env':_0x3273b9['env']??_0x49fe59(0xa5),'accessKey':_0x3273b9['accessKey']}),_0x52be28=findAppByName(_0x203719[_0x49fe59(0xd4)],_0x20494c);if(_0x52be28&&!isRuntimeAccessibleApp(_0x52be28))throw runtimeInaccessibleAppError(_0x52be28,'\x22'+_0x20494c+'\x22');}async function assertAppCodeIsRuntimeAccessible(_0x17cc4d,_0x369b03,_0x615882){const _0x148b80=a116_0x1c64;if(_0x17cc4d[_0x148b80(0xaa)]===![]||!_0x369b03[_0x148b80(0xad)])return;const {getRemoteAppList:_0x2efeb9}=await import(_0x148b80(0xcc)),_0x4e553a=await _0x2efeb9({'env':_0x369b03[_0x148b80(0xb1)]??_0x148b80(0xa5),'accessKey':_0x369b03[_0x148b80(0xad)]}),_0x34a5f4=findAppByCode(_0x4e553a[_0x148b80(0xd4)],_0x615882);if(_0x34a5f4&&!isRuntimeAccessibleApp(_0x34a5f4))throw runtimeInaccessibleAppError(_0x34a5f4,_0x148b80(0xb2)+_0x615882+'\x22');}export async function runCommand(_0x506d82,_0x59008f,_0x2abe48=terminalRunnerAdapter){const _0x31a655=a116_0x1c64;assertKnownCommandFlags(_0x506d82,_0x59008f[_0x31a655(0xc5)]),await runCommandWithAdapter(shouldAttachUpdateNotice(_0x506d82)?withUpdateNotice(_0x506d82):_0x506d82,_0x59008f,_0x2abe48);}function shouldAttachUpdateNotice(_0x134af1){const _0xc1f473=a116_0x1c64;return![_0xc1f473(0xd2),_0xc1f473(0xb5),_0xc1f473(0xd5)][_0xc1f473(0xa3)](_0x134af1[_0xc1f473(0xc9)]);}function withUpdateNotice(_0x43e998){return{..._0x43e998,async 'execute'(_0x3ac919){const _0x143b91=a116_0x1c64,_0x3d4423=shouldResolveUpdateNotice(_0x3ac919)?resolveLatestUpdateNotice()[_0x143b91(0xd8)](()=>null):Promise[_0x143b91(0xac)](null),_0x4454b3=await _0x43e998['execute'](_0x3ac919);return attachUpdateNotice(_0x4454b3,await _0x3d4423);}};}function shouldResolveUpdateNotice(_0xf9a043){const _0xa98ba3=a116_0x1c64;return _0xf9a043['format']==='pretty'&&!_0xf9a043[_0xa98ba3(0xc3)];}function a116_0x545c(){const _0x2900fa=['6370034Ooftnn','resolve','accessKey','defaultApp','map','Unknown\x20app:\x20','env','appcode\x20\x22','\x20or\x20pass\x20','object','schema','.appcode\x20to\x20','../core/sdk-client.js','name','defaultPageSize','Set\x20accessKey\x20in\x20','appCode','has','formatOutput','newConfigFileName','268MmxDKt','2385toxwUj','500487XBOMOS','currentApp','nonInteractive','pageSize','rawFlags','ACCESS_KEY','Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20','app','service','string','../core/api-client.js','../commands/app/remote-source.js','3308048KlJCIp','APPCODE','10pffnoF','confirmHighRisk','command','update','14hdJEup','items','doctor','apiDomain','configMissing','catch','cancelled','local-alias','filter','ClientAk','riskLevel','3217059yevaVV','trim','validation','appcode','appCodeSource','912305lGExUv','High-risk\x20operation\x20`','12RjLVsy','includes','error','production','Run\x20`','mergedCli','341178rfdurM','verbose','requiresAppCode'];a116_0x545c=function(){return _0x2900fa;};return a116_0x545c();}function attachUpdateNotice(_0x3e10e4,_0x537aab){const _0x357f44=a116_0x1c64;if(!_0x537aab||!_0x3e10e4||typeof _0x3e10e4!==_0x357f44(0xb4))return _0x3e10e4;const _0x4eaaac=_0x3e10e4,_0x10ceef=typeof _0x4eaaac['_notice']==='object'&&_0x4eaaac['_notice']!==null?_0x4eaaac['_notice']:{};return{..._0x4eaaac,'_notice':{..._0x10ceef,'update':_0x537aab}};}
|
|
1
|
+
(function(_0x4e93e5,_0x14a2fe){const _0x5de459=a119_0x3976,_0x2e9211=_0x4e93e5();while(!![]){try{const _0x56c1cf=-parseInt(_0x5de459(0x20c))/0x1*(parseInt(_0x5de459(0x1f2))/0x2)+parseInt(_0x5de459(0x211))/0x3+parseInt(_0x5de459(0x1f9))/0x4+-parseInt(_0x5de459(0x20f))/0x5+-parseInt(_0x5de459(0x1ea))/0x6+-parseInt(_0x5de459(0x209))/0x7+-parseInt(_0x5de459(0x1fd))/0x8*(-parseInt(_0x5de459(0x1d3))/0x9);if(_0x56c1cf===_0x14a2fe)break;else _0x2e9211['push'](_0x2e9211['shift']());}catch(_0xfdc1f1){_0x2e9211['push'](_0x2e9211['shift']());}}}(a119_0x8e84,0x86615));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(_0x2a3bfa){return void _0x2a3bfa,AUTH_MODE['ClientAk'];}let sdkClientInitialized=![];export function createPipelineEnv(_0x5baa7d,_0x1f2b80){const _0x534c5b=a119_0x3976,_0x46e6e6=typeof _0x1f2b80['app']==='string'&&_0x1f2b80[_0x534c5b(0x1f4)][_0x534c5b(0x208)]();return{'rawFlags':_0x1f2b80,'appCode':_0x5baa7d[_0x534c5b(0x210)]||productEnv('APPCODE')||(_0x46e6e6?undefined:readAppCodeFromConfig()),'appCodeSource':_0x5baa7d[_0x534c5b(0x204)],'apiDomain':getApiDomain(),'runtimeDomain':getRuntimeDomain(),'isNonInteractive':isNonInteractiveMode(_0x1f2b80),'defaultFormat':_0x5baa7d[_0x534c5b(0x1d2)],'defaultPageSize':_0x5baa7d[_0x534c5b(0x1dd)],'defaultVerbose':_0x5baa7d['verbose'],'riskLevel':_0x5baa7d[_0x534c5b(0x1e6)],'accessKey':_0x5baa7d[_0x534c5b(0x1ec)],'env':_0x5baa7d[_0x534c5b(0x1de)],'mergedCli':{'defaultApp':_0x5baa7d[_0x534c5b(0x1e7)],'currentApp':_0x5baa7d[_0x534c5b(0x1fb)],'appCode':_0x5baa7d[_0x534c5b(0x210)]}};}export function createLovrabetRunnerAdapter(_0x588fa8={}){const _0x3a20c6=a119_0x3976,_0x5dcaf8={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0x3a20c6(0x1e8)](_0x35a37c=>PIPELINE_FLAG_NAMES[_0x3a20c6(0x1d4)](_0x35a37c[_0x3a20c6(0x20a)]))[_0x3a20c6(0x1d8)](({name:_0x1403b3,type:_0x106dcf,description:_0x35f87f})=>({'name':_0x1403b3,'type':_0x106dcf,'description':_0x35f87f})),'formatOutput':_0x588fa8[_0x3a20c6(0x1f8)]??formatOutput,'getCommandLabel'(_0x23f808){const _0x1bcacc=_0x3a20c6;return CLI_BIN_NAME+'\x20'+_0x23f808[_0x1bcacc(0x1d9)]+'\x20'+_0x23f808['command'];},'riskPolicy':{'onViolation'(_0x364f90){console['error'](_0x364f90);},'createError'(_0x4550ee){const _0x47322b=_0x3a20c6;return CliErrors[_0x47322b(0x205)](_0x4550ee);}},async 'prepare'(_0xf915cf,_0x49059a){const _0xfa6314=_0x3a20c6,_0x3e0065=resolveAuthMode(_0x49059a);if(_0xf915cf[_0xfa6314(0x1e1)]!==![]){if(!_0x49059a[_0xfa6314(0x1ec)])throw CliErrors['authRequired'](_0xfa6314(0x1d6)+PRODUCT_CONFIG[_0xfa6314(0x1e3)]+_0xfa6314(0x1f3)+productEnvName('ACCESS_KEY')+'.');const {setActiveAK:_0x1ec445}=await import(_0xfa6314(0x200));_0x1ec445(_0x49059a[_0xfa6314(0x1ec)]);}let _0x5b05c8='';if(_0xf915cf[_0xfa6314(0x1dc)]!==![]){_0x5b05c8=_0x49059a['appCode']??'',_0x5b05c8=await resolveExplicitAppName(_0xf915cf,_0x49059a,_0x5b05c8);if(!_0x5b05c8){await assertSelectedAppNameIsRuntimeAccessible(_0xf915cf,_0x49059a);throw CliErrors['configMissing'](_0xfa6314(0x1ee)+PRODUCT_CONFIG['newConfigFileName']+'.');}await assertAppCodeIsRuntimeAccessible(_0xf915cf,_0x49059a,_0x5b05c8);}if(_0x5b05c8){const {initSdkClient:_0x543748}=await import(_0xfa6314(0x1e9));_0x543748({'appCode':_0x5b05c8,'env':_0x49059a[_0xfa6314(0x1de)]??_0xfa6314(0x1d1),'runtimeDomain':_0x49059a['runtimeDomain'],'accessKey':_0x49059a[_0xfa6314(0x1ec)],'authMode':_0x3e0065}),sdkClientInitialized=!![];}return{'defaults':{'booleans':{'verbose':_0x49059a[_0xfa6314(0x1f7)]},'numbers':{'pagesize':_0x49059a[_0xfa6314(0x1ed)]}},'extras':{'appCode':_0x5b05c8,'cookie':'','apiDomain':_0x49059a[_0xfa6314(0x1ef)],'apiDir':'','accessKey':_0x49059a[_0xfa6314(0x1ec)],'envName':_0x49059a[_0xfa6314(0x1de)],'mergedCli':_0x49059a[_0xfa6314(0x1e4)]}};},'confirmHighRisk':_0x588fa8[_0x3a20c6(0x1f0)]??(async({def:_0x4d54ba,env:_0x3eafd0,flags:_0x5cd41d,commandLabel:_0x2d13c1})=>{const _0x248b5d=_0x3a20c6;if(_0x3eafd0['isNonInteractive']){const _0x3e1dd6=reconstructCommandArgv(_0x4d54ba,_0x5cd41d);throw CliErrors[_0x248b5d(0x207)](_0x248b5d(0x20d)+_0x2d13c1+'`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a'+(_0x248b5d(0x1fe)+_0x3e1dd6));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0x4d54ba,_0x2d13c1,_0x5cd41d),'createCancelledError':_0x583fed=>CliErrors[_0x248b5d(0x205)](_0x583fed)});}),'mapDryRunError'(_0x3431e8){return mapUserFacingExecuteError(_0x3431e8);},'mapExecuteError'(_0x2a7248){return mapUserFacingExecuteError(_0x2a7248);},async 'finalize'(){await finalizeLovrabetRuntimeState();}};return _0x5dcaf8;}const terminalRunnerAdapter=createLovrabetRunnerAdapter();function a119_0x3976(_0x20eab0,_0x1da2db){_0x20eab0=_0x20eab0-0x1d1;const _0x8e8438=a119_0x8e84();let _0x39764b=_0x8e8438[_0x20eab0];return _0x39764b;}export async function finalizeLovrabetRuntimeState(){const _0x4ee84a=a119_0x3976;try{if(sdkClientInitialized){const {clearSdkClient:_0x3ef7f9}=await import(_0x4ee84a(0x1e9));_0x3ef7f9();}}finally{sdkClientInitialized=![];const {clearActiveAK:_0x54e07c}=await import(_0x4ee84a(0x200));_0x54e07c();}}async function resolveExplicitAppName(_0x53654a,_0x4f098d,_0x371c66){const _0x41506b=a119_0x3976;if(_0x53654a[_0x41506b(0x1dc)]===![])return _0x371c66;const _0x7f882e=typeof _0x4f098d['rawFlags']['app']===_0x41506b(0x1e2)?_0x4f098d[_0x41506b(0x1f6)][_0x41506b(0x1f4)][_0x41506b(0x208)]():'';if(!_0x7f882e)return _0x371c66;const _0x4f93b1=typeof _0x4f098d[_0x41506b(0x1f6)][_0x41506b(0x1d5)]===_0x41506b(0x1e2)&&_0x4f098d['rawFlags'][_0x41506b(0x1d5)][_0x41506b(0x208)]()||productEnv(_0x41506b(0x1da));if(_0x4f93b1||_0x4f098d[_0x41506b(0x204)]===_0x41506b(0x1eb))return _0x371c66;const {getRemoteAppList:_0x126167}=await import('../commands/app/remote-source.js'),_0x597f09=await _0x126167({'env':_0x4f098d['env']??_0x41506b(0x1d1),'accessKey':_0x4f098d['accessKey']}),_0x9ed377=findAppByName(_0x597f09['items'],_0x7f882e);if(_0x9ed377&&!isRuntimeAccessibleApp(_0x9ed377))throw runtimeInaccessibleAppError(_0x9ed377,'\x22'+_0x7f882e+'\x22');const _0x1ac8f7=_0x9ed377?.['appCode']?.[_0x41506b(0x208)]();if(_0x1ac8f7)return _0x1ac8f7;throw CliErrors[_0x41506b(0x207)](_0x41506b(0x1db)+_0x7f882e,'Run\x20`'+CLI_BIN_NAME+_0x41506b(0x1fc)+_0x7f882e+_0x41506b(0x1d7)+PRODUCT_CONFIG['newConfigFileName']+'.');}async function assertSelectedAppNameIsRuntimeAccessible(_0x194a45,_0x5326d1){const _0x157cfc=a119_0x3976;if(_0x194a45['requiresAppCode']===![]||!_0x5326d1['accessKey'])return;const _0x5ad5db=(typeof _0x5326d1[_0x157cfc(0x1f6)][_0x157cfc(0x1f4)]===_0x157cfc(0x1e2)&&_0x5326d1[_0x157cfc(0x1f6)][_0x157cfc(0x1f4)][_0x157cfc(0x208)]()?_0x5326d1[_0x157cfc(0x1f6)][_0x157cfc(0x1f4)]:_0x5326d1[_0x157cfc(0x1e4)]?.[_0x157cfc(0x1fb)]??_0x5326d1[_0x157cfc(0x1e4)]?.[_0x157cfc(0x1e7)])?.['trim']();if(!_0x5ad5db)return;const {getRemoteAppList:_0x4096f5}=await import(_0x157cfc(0x20b)),_0x200547=await _0x4096f5({'env':_0x5326d1[_0x157cfc(0x1de)]??_0x157cfc(0x1d1),'accessKey':_0x5326d1['accessKey']}),_0x56c165=findAppByName(_0x200547[_0x157cfc(0x1df)],_0x5ad5db);if(_0x56c165&&!isRuntimeAccessibleApp(_0x56c165))throw runtimeInaccessibleAppError(_0x56c165,'\x22'+_0x5ad5db+'\x22');}function a119_0x8e84(){const _0x40a2a9=['3452740MKihjf','nonInteractive','currentApp','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.','8JWfCgF','\x20\x20To\x20proceed:\x20','command','../core/api-client.js','catch','update','doctor','appCodeSource','cancelled','_notice','validation','trim','2983190DLSYle','name','../commands/app/remote-source.js','1TTEqrE','High-risk\x20operation\x20`','schema','822225PeazsO','appCode','844068BOvorH','production','format','14798601rsfZuS','has','appcode','Set\x20accessKey\x20in\x20','.appcode\x20to\x20','map','service','APPCODE','Unknown\x20app:\x20','requiresAppCode','pageSize','env','items','appcode\x20\x22','requiresAuth','string','newConfigFileName','mergedCli','execute','riskLevel','defaultApp','filter','../core/sdk-client.js','4914708QsUqHf','local-alias','accessKey','defaultPageSize','Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20','apiDomain','confirmHighRisk','object','1657352BSSgZQ','\x20or\x20pass\x20','app','pretty','rawFlags','defaultVerbose','formatOutput'];a119_0x8e84=function(){return _0x40a2a9;};return a119_0x8e84();}async function assertAppCodeIsRuntimeAccessible(_0x23fbed,_0x39be44,_0x16f92d){const _0x3c426d=a119_0x3976;if(_0x23fbed[_0x3c426d(0x1dc)]===![]||!_0x39be44['accessKey'])return;const {getRemoteAppList:_0x10b95f}=await import(_0x3c426d(0x20b)),_0x1306f4=await _0x10b95f({'env':_0x39be44[_0x3c426d(0x1de)]??_0x3c426d(0x1d1),'accessKey':_0x39be44[_0x3c426d(0x1ec)]}),_0x57c60a=findAppByCode(_0x1306f4['items'],_0x16f92d);if(_0x57c60a&&!isRuntimeAccessibleApp(_0x57c60a))throw runtimeInaccessibleAppError(_0x57c60a,_0x3c426d(0x1e0)+_0x16f92d+'\x22');}export async function runCommand(_0x2d2e18,_0x1a2710,_0x19f952=terminalRunnerAdapter){const _0x5de03c=a119_0x3976;assertKnownCommandFlags(_0x2d2e18,_0x1a2710[_0x5de03c(0x1f6)]),await runCommandWithAdapter(shouldApplyVersionPolicy(_0x2d2e18)?withVersionPolicy(_0x2d2e18):_0x2d2e18,_0x1a2710,_0x19f952);}function shouldApplyVersionPolicy(_0x82d04b){const _0x109e15=a119_0x3976;if([_0x109e15(0x202),_0x109e15(0x20e),_0x109e15(0x203)]['includes'](_0x82d04b['service']))return![];return!(_0x82d04b[_0x109e15(0x1d9)]==='cli-skill'&&_0x82d04b[_0x109e15(0x1ff)]==='install');}function withVersionPolicy(_0x264ca9){return{..._0x264ca9,async 'execute'(_0x2f89ba){const _0x39e418=a119_0x3976,_0x5a9c78=await checkCliVersion();assertCliVersionSupported(_0x5a9c78);const _0x31616b=shouldResolveUpdateNotice(_0x2f89ba)?resolveLatestUpdateNotice(_0x5a9c78)[_0x39e418(0x201)](()=>null):Promise['resolve'](null),_0x1b693b=await _0x264ca9[_0x39e418(0x1e5)](_0x2f89ba);return attachUpdateNotice(_0x1b693b,await _0x31616b);}};}function shouldResolveUpdateNotice(_0x91b6d6){const _0xf56679=a119_0x3976;return _0x91b6d6[_0xf56679(0x1d2)]===_0xf56679(0x1f5)&&!_0x91b6d6[_0xf56679(0x1fa)];}function attachUpdateNotice(_0xab416f,_0x30af8d){const _0x17a650=a119_0x3976;if(!_0x30af8d||!_0xab416f||typeof _0xab416f!==_0x17a650(0x1f1))return _0xab416f;const _0x408482=_0xab416f,_0x22caf8=typeof _0x408482[_0x17a650(0x206)]===_0x17a650(0x1f1)&&_0x408482[_0x17a650(0x206)]!==null?_0x408482['_notice']:{};return{..._0x408482,'_notice':{..._0x22caf8,'update':_0x30af8d}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xe5243b,_0x512dce){const _0x1e5547=a120_0x2fcf,_0x2f7f5c=_0xe5243b();while(!![]){try{const _0x1c586a=-parseInt(_0x1e5547(0x16e))/0x1+parseInt(_0x1e5547(0x172))/0x2+parseInt(_0x1e5547(0x161))/0x3+parseInt(_0x1e5547(0x163))/0x4*(parseInt(_0x1e5547(0x171))/0x5)+parseInt(_0x1e5547(0x16c))/0x6*(-parseInt(_0x1e5547(0x167))/0x7)+parseInt(_0x1e5547(0x170))/0x8*(parseInt(_0x1e5547(0x16b))/0x9)+-parseInt(_0x1e5547(0x168))/0xa;if(_0x1c586a===_0x512dce)break;else _0x2f7f5c['push'](_0x2f7f5c['shift']());}catch(_0x188fb7){_0x2f7f5c['push'](_0x2f7f5c['shift']());}}}(a120_0x45cb,0x4a85e));import{buildSchemaPayload as a120_0xeb7d16}from'@lovrabet/cli-framework';function a120_0x2fcf(_0x4383b5,_0x5a6e38){_0x4383b5=_0x4383b5-0x160;const _0x45cbb9=a120_0x45cb();let _0x2fcf39=_0x45cbb9[_0x4383b5];return _0x2fcf39;}import{buildAllFlags}from'../framework/build-all-flags.js';function a120_0x45cb(){const _0x688d12=['12MaZLOh','none','202219CiSDqU','auth','5320hXPkdE','170HWvDUU','983816fidcli','../commands/registry.js','service','755193KenVqk','has','50992IDBbPC','commands','requiresAuth','filter','1960140oCuctu','3675860Dpmrll','map','services','3492FGgGtW'];a120_0x45cb=function(){return _0x688d12;};return a120_0x45cb();}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 _0x2e3360=a120_0x2fcf,{serviceRegistry:_0x3fccf6,findDefinition:_0x6a2833}=await import(_0x2e3360(0x173)),_0x272f8f=new Set(_0x3fccf6[_0x2e3360(0x169)](_0x14bc37=>_0x14bc37[_0x2e3360(0x160)])),_0x5d3124=listDynamicServiceEntries()[_0x2e3360(0x166)](_0x45b274=>!_0x272f8f[_0x2e3360(0x162)](_0x45b274[_0x2e3360(0x160)])),_0x2f193a=a120_0xeb7d16({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':getCliGitCommit(),'globalFlags':GLOBAL_FLAGS,'serviceRegistry':insertDynamicServicesAfterServiceTree(_0x3fccf6,_0x5d3124),'buildAllFlags':buildAllFlags,'findDefinition':(_0x22accf,_0x32890f)=>_0x6a2833(_0x22accf,_0x32890f)??findDynamicServiceDefinition(_0x22accf,_0x32890f)});return normalizeSchemaPayload(_0x2f193a);}function normalizeSchemaPayload(_0x31eeb0){const _0x23d476=a120_0x2fcf;return{..._0x31eeb0,'schemaVersion':0x2,'services':_0x31eeb0[_0x23d476(0x16a)][_0x23d476(0x169)](_0x533af9=>({..._0x533af9,'commands':_0x533af9[_0x23d476(0x164)][_0x23d476(0x169)](normalizeSchemaCommand)}))};}function normalizeSchemaCommand(_0x4bf171){const _0x2c9541=a120_0x2fcf,_0x3cb20b=_0x4bf171;return{..._0x4bf171,'auth':_0x3cb20b[_0x2c9541(0x16f)]??(_0x4bf171[_0x2c9541(0x165)]?'required':_0x2c9541(0x16d))};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a121_0x1d57(_0x3a4c71,_0x548c48){_0x3a4c71=_0x3a4c71-0x19f;const _0x333e32=a121_0x333e();let _0x1d57f2=_0x333e32[_0x3a4c71];return _0x1d57f2;}(function(_0x55a03d,_0x205a6f){const _0x489fe1=a121_0x1d57,_0x5ea265=_0x55a03d();while(!![]){try{const _0x5f55b0=-parseInt(_0x489fe1(0x1a7))/0x1*(-parseInt(_0x489fe1(0x1ac))/0x2)+parseInt(_0x489fe1(0x1a0))/0x3*(-parseInt(_0x489fe1(0x1a8))/0x4)+-parseInt(_0x489fe1(0x1a3))/0x5+-parseInt(_0x489fe1(0x1a1))/0x6+parseInt(_0x489fe1(0x1a5))/0x7+parseInt(_0x489fe1(0x1a9))/0x8*(-parseInt(_0x489fe1(0x1a4))/0x9)+parseInt(_0x489fe1(0x1ab))/0xa*(parseInt(_0x489fe1(0x1a6))/0xb);if(_0x5f55b0===_0x205a6f)break;else _0x5ea265['push'](_0x5ea265['shift']());}catch(_0x4d6323){_0x5ea265['push'](_0x5ea265['shift']());}}}(a121_0x333e,0x1f1ad));export function insertDynamicServicesAfterServiceTree(_0x2df28e,_0x40bbb6){const _0x4713cb=a121_0x1d57;if(_0x40bbb6['length']===0x0)return[..._0x2df28e];const _0x363573=_0x2df28e[_0x4713cb(0x19f)](_0x8a16a2=>_0x8a16a2[_0x4713cb(0x1aa)]==='service');if(_0x363573<0x0)return[..._0x2df28e,..._0x40bbb6];return[..._0x2df28e[_0x4713cb(0x1a2)](0x0,_0x363573+0x1),..._0x40bbb6,..._0x2df28e[_0x4713cb(0x1a2)](_0x363573+0x1)];}function a121_0x333e(){const _0x14aa10=['359205LaxihR','185QPqVdi','4uJQCcn','872bwVgDz','service','210CtzlpH','286GAwmnv','findIndex','735963QnSXeX','814404PvQxst','slice','1226625gwCGKg','11853zvVEfJ','1295896DCKCJV'];a121_0x333e=function(){return _0x14aa10;};return a121_0x333e();}
|
package/lib/framework/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a122_0x18ff(_0x57d76c,_0x1a5c63){_0x57d76c=_0x57d76c-0x110;var _0x51ab66=a122_0x51ab();var _0x18ff97=_0x51ab66[_0x57d76c];return _0x18ff97;}function a122_0x51ab(){var _0x5e6255=['117lEYETF','439789yegqYS','44ideSJb','66PQoATr','2105040IoTGGv','50496UXjHnZ','23132qhrToW','464267LlKFwW','958248beagxI','330nJnLiR','2828750GoznoL'];a122_0x51ab=function(){return _0x5e6255;};return a122_0x51ab();}(function(_0x241112,_0x232b58){var _0x1eafa0=a122_0x18ff,_0x4701cb=_0x241112();while(!![]){try{var _0x46bd04=parseInt(_0x1eafa0(0x118))/0x1+parseInt(_0x1eafa0(0x117))/0x2*(parseInt(_0x1eafa0(0x11a))/0x3)+parseInt(_0x1eafa0(0x119))/0x4+parseInt(_0x1eafa0(0x115))/0x5+-parseInt(_0x1eafa0(0x114))/0x6*(parseInt(_0x1eafa0(0x112))/0x7)+parseInt(_0x1eafa0(0x116))/0x8*(parseInt(_0x1eafa0(0x111))/0x9)+-parseInt(_0x1eafa0(0x110))/0xa*(parseInt(_0x1eafa0(0x113))/0xb);if(_0x46bd04===_0x232b58)break;else _0x4701cb['push'](_0x4701cb['shift']());}catch(_0x1df475){_0x4701cb['push'](_0x4701cb['shift']());}}}(a122_0x51ab,0xa04ac));export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const VERSION = "2.2
|
|
2
|
-
export declare const GIT_TAG = "v2.2
|
|
3
|
-
export declare const GIT_COMMIT = "
|
|
4
|
-
export declare const BUILD_TIME = "2026-08-
|
|
1
|
+
export declare const VERSION = "2.3.0-beta.2";
|
|
2
|
+
export declare const GIT_TAG = "v2.3.0-beta.2";
|
|
3
|
+
export declare const GIT_COMMIT = "30569ee";
|
|
4
|
+
export declare const BUILD_TIME = "2026-08-21T15:33:26.323Z";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a123_0x2fd951=a123_0x4551;(function(_0x367f13,_0x292967){const _0x3e4828=a123_0x4551,_0x54cf34=_0x367f13();while(!![]){try{const _0x432a1d=parseInt(_0x3e4828(0x186))/0x1+parseInt(_0x3e4828(0x184))/0x2+-parseInt(_0x3e4828(0x187))/0x3*(parseInt(_0x3e4828(0x185))/0x4)+parseInt(_0x3e4828(0x189))/0x5+-parseInt(_0x3e4828(0x18a))/0x6+parseInt(_0x3e4828(0x182))/0x7+-parseInt(_0x3e4828(0x181))/0x8;if(_0x432a1d===_0x292967)break;else _0x54cf34['push'](_0x54cf34['shift']());}catch(_0xe90bdd){_0x54cf34['push'](_0x54cf34['shift']());}}}(a123_0x4db0,0x2b928));export const VERSION=a123_0x2fd951(0x188);export const GIT_TAG=a123_0x2fd951(0x17f);function a123_0x4db0(){const _0x1bce85=['641538vthPuS','v2.3.0-beta.2','30569ee','1458440TeEyKY','1387456PHBJaE','2026-08-21T15:33:26.323Z','217578lYJGAm','30980aKUCbc','151720oVQddj','69KrEteM','2.3.0-beta.2','935590chJFpR'];a123_0x4db0=function(){return _0x1bce85;};return a123_0x4db0();}export const GIT_COMMIT=a123_0x2fd951(0x180);function a123_0x4551(_0x3608be,_0x530d3f){_0x3608be=_0x3608be-0x17f;const _0x4db08f=a123_0x4db0();let _0x4551f4=_0x4db08f[_0x3608be];return _0x4551f4;}export const BUILD_TIME=a123_0x2fd951(0x183);
|
package/lib/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x32211b,_0x3313a8){const _0x4ecaef=a124_0x2f42,_0x2dac7e=_0x32211b();while(!![]){try{const _0x4992d0=parseInt(_0x4ecaef(0x1bd))/0x1*(-parseInt(_0x4ecaef(0x1ba))/0x2)+parseInt(_0x4ecaef(0x1b3))/0x3*(-parseInt(_0x4ecaef(0x1bf))/0x4)+parseInt(_0x4ecaef(0x1bc))/0x5+-parseInt(_0x4ecaef(0x1b5))/0x6*(parseInt(_0x4ecaef(0x1b0))/0x7)+parseInt(_0x4ecaef(0x1b6))/0x8*(parseInt(_0x4ecaef(0x1be))/0x9)+parseInt(_0x4ecaef(0x1b4))/0xa+parseInt(_0x4ecaef(0x1b8))/0xb;if(_0x4992d0===_0x3313a8)break;else _0x2dac7e['push'](_0x2dac7e['shift']());}catch(_0xebdd5e){_0x2dac7e['push'](_0x2dac7e['shift']());}}}(a124_0x1929,0xb2925));function a124_0x1929(){const _0x47b8e1=['81CUDTiF','415876ThvvgB','1043gtSNBE','\x20\x20Use\x20','column','33SRInws','12414700OtqCDI','58470QnePDD','189248hZSAxf','\x20--help','20655437vbdfEX','\x20to\x20view\x20available\x20commands.','1201102SlyIIc','green','5980270lTeCzn','2QxlFew'];a124_0x1929=function(){return _0x47b8e1;};return a124_0x1929();}import{jsx as a124_0x3d7491,jsxs as a124_0x13fd09}from'react/jsx-runtime';import{useEffect}from'react';import{Box,Text,useApp}from'ink';function a124_0x2f42(_0x3eb375,_0x5c5eb7){_0x3eb375=_0x3eb375-0x1b0;const _0x1929df=a124_0x1929();let _0x2f4290=_0x1929df[_0x3eb375];return _0x2f4290;}import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function Help(){const _0x4e47df=a124_0x2f42,{exit:_0x27b93a}=useApp();return useEffect(()=>{_0x27b93a();},[_0x27b93a]),a124_0x13fd09(Box,{'flexDirection':_0x4e47df(0x1b2),'marginTop':0x1,'marginBottom':0x1,'children':[a124_0x3d7491(Box,{'children':a124_0x3d7491(Text,{'bold':!![],'color':_0x4e47df(0x1bb),'children':'\x20\x20'+CLI_DISPLAY_NAME})}),a124_0x13fd09(Box,{'marginTop':0x1,'children':[a124_0x3d7491(Text,{'dimColor':!![],'children':_0x4e47df(0x1b1)}),a124_0x3d7491(Text,{'bold':!![],'color':_0x4e47df(0x1bb),'children':CLI_BIN_NAME+_0x4e47df(0x1b7)}),a124_0x3d7491(Text,{'dimColor':!![],'children':_0x4e47df(0x1b9)})]})]});}
|
package/lib/postinstall.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a125_0x1277(){const _0x36296a=['SOURCE_INVALID','202334QrHSGx','Installation\x20failed','31105VWpeay','changed','[BUILTIN_SKILL_INSTALL_','10244385SZBDNN','807FRJGHR','5870300QDpjnC','skillVersion','1014RTOURw','Lovrabet\x20Built-in\x20Skill\x20','log','installedPath','warn','code','10820929jwyajm','7918848HDgINl','862rcIxTE','installed'];a125_0x1277=function(){return _0x36296a;};return a125_0x1277();}function a125_0x3c4a(_0xd9fd,_0x3d3183){_0xd9fd=_0xd9fd-0x109;const _0x127721=a125_0x1277();let _0x3c4ae9=_0x127721[_0xd9fd];return _0x3c4ae9;}(function(_0x4b633e,_0x5860dd){const _0x5ec78a=a125_0x3c4a,_0x84c239=_0x4b633e();while(!![]){try{const _0x53b607=-parseInt(_0x5ec78a(0x114))/0x1+-parseInt(_0x5ec78a(0x111))/0x2*(parseInt(_0x5ec78a(0x11a))/0x3)+-parseInt(_0x5ec78a(0x11b))/0x4+parseInt(_0x5ec78a(0x116))/0x5*(-parseInt(_0x5ec78a(0x109))/0x6)+parseInt(_0x5ec78a(0x10f))/0x7+parseInt(_0x5ec78a(0x110))/0x8+parseInt(_0x5ec78a(0x119))/0x9;if(_0x53b607===_0x5860dd)break;else _0x84c239['push'](_0x84c239['shift']());}catch(_0x47c521){_0x84c239['push'](_0x84c239['shift']());}}}(a125_0x1277,0xcc4a3));import{installBuiltinSkill}from'./skills/builtin-skill.js';export async function runPostinstall(_0x1dafb8={}){const _0xf7a60f=a125_0x3c4a,_0x15626c=installBuiltinSkill(_0x1dafb8);if(_0x15626c['ok']){const _0x131e11=_0x15626c[_0xf7a60f(0x117)]?_0xf7a60f(0x112):'already\x20current',_0x1221f2=_0x15626c[_0xf7a60f(0x10c)]?'\x20at\x20'+_0x15626c[_0xf7a60f(0x10c)]:'\x20via\x20skills@latest';return console[_0xf7a60f(0x10b)](_0xf7a60f(0x10a)+_0x15626c[_0xf7a60f(0x11c)]+'\x20'+_0x131e11+_0x1221f2),_0x15626c;}const _0x41724d=_0xf7a60f(0x118)+(_0x15626c['code']??'FAILED')+']\x20'+(_0x15626c['error']??_0xf7a60f(0x115))+'.\x20'+('Repair\x20with:\x20'+_0x15626c['repairCommand']);if(_0x15626c[_0xf7a60f(0x10e)]===_0xf7a60f(0x113))throw new Error(_0x41724d);return console[_0xf7a60f(0x10d)](_0x41724d),_0x15626c;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a126_0x15a1(){const _0x1308b5=['1002712VVSMhM','743238mBzlEi','5sLWCYo','string','description','846132TvOsIm','Run\x20this\x20write\x20operation','2276992dpmvFY','risk','replace','10658747VFllMJ','483266eilerM','3291480pEwKOP','10PuwaPO','1Ncrirf','Lovrabet\x20confirmation\x20requires\x20a\x20write\x20command.','high-risk-write','slice','80QCwmcH'];a126_0x15a1=function(){return _0x1308b5;};return a126_0x15a1();}(function(_0x260b64,_0x573fb5){const _0x5555d2=a126_0x1195,_0x37998a=_0x260b64();while(!![]){try{const _0x1b4bb8=parseInt(_0x5555d2(0x1c9))/0x1*(-parseInt(_0x5555d2(0x1bb))/0x2)+parseInt(_0x5555d2(0x1c0))/0x3+-parseInt(_0x5555d2(0x1c2))/0x4*(-parseInt(_0x5555d2(0x1bd))/0x5)+parseInt(_0x5555d2(0x1bc))/0x6+-parseInt(_0x5555d2(0x1c6))/0x7*(parseInt(_0x5555d2(0x1ba))/0x8)+-parseInt(_0x5555d2(0x1c7))/0x9+-parseInt(_0x5555d2(0x1c8))/0xa*(-parseInt(_0x5555d2(0x1c5))/0xb);if(_0x1b4bb8===_0x573fb5)break;else _0x37998a['push'](_0x37998a['shift']());}catch(_0x503019){_0x37998a['push'](_0x37998a['shift']());}}}(a126_0x15a1,0x5e67e));const DESCRIPTION_MAX_LENGTH=0x1f4;function a126_0x1195(_0x57ca78,_0x19c89e){_0x57ca78=_0x57ca78-0x1b7;const _0x15a1a5=a126_0x15a1();let _0x11956e=_0x15a1a5[_0x57ca78];return _0x11956e;}export function buildLovrabetConfirmationRequest(_0x528eb2,_0x1c4a66,_0x9d0404){const _0x108659=a126_0x1195,_0x544ace=normalizeText(_0x528eb2['confirmationDescription'],DESCRIPTION_MAX_LENGTH),_0x115972=normalizeText(_0x528eb2[_0x108659(0x1bf)],DESCRIPTION_MAX_LENGTH);return{'operation':_0x1c4a66,'risk':requireWriteRisk(_0x528eb2),'description':_0x544ace||_0x115972||_0x108659(0x1c1),..._0x9d0404?{'signal':_0x9d0404}:{}};}function requireWriteRisk(_0x4d1271){const _0x5d0ae2=a126_0x1195;if(_0x4d1271[_0x5d0ae2(0x1c3)]==='write'||_0x4d1271[_0x5d0ae2(0x1c3)]===_0x5d0ae2(0x1b8))return _0x4d1271['risk'];throw new Error(_0x5d0ae2(0x1b7));}function normalizeText(_0x238e0d,_0x3b2953){const _0x5211d1=a126_0x1195;if(typeof _0x238e0d!==_0x5211d1(0x1be))return'';return _0x238e0d[_0x5211d1(0x1c4)](/[\u0000-\u001f\u007f]+/g,'\x20')[_0x5211d1(0x1c4)](/\s+/g,'\x20')['trim']()[_0x5211d1(0x1b9)](0x0,_0x3b2953);}
|
package/lib/runtime/event.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a127_0x1e05(_0x2df21b,_0xaad87c){_0x2df21b=_0x2df21b-0x142;const _0x36445e=a127_0x3644();let _0x1e0574=_0x36445e[_0x2df21b];return _0x1e0574;}(function(_0x3691af,_0x2b1b2d){const _0x94cf6e=a127_0x1e05,_0x3a4874=_0x3691af();while(!![]){try{const _0x469421=parseInt(_0x94cf6e(0x154))/0x1*(-parseInt(_0x94cf6e(0x148))/0x2)+parseInt(_0x94cf6e(0x144))/0x3*(-parseInt(_0x94cf6e(0x14d))/0x4)+parseInt(_0x94cf6e(0x14e))/0x5+-parseInt(_0x94cf6e(0x142))/0x6+parseInt(_0x94cf6e(0x14c))/0x7+-parseInt(_0x94cf6e(0x149))/0x8*(-parseInt(_0x94cf6e(0x14f))/0x9)+-parseInt(_0x94cf6e(0x146))/0xa*(-parseInt(_0x94cf6e(0x150))/0xb);if(_0x469421===_0x2b1b2d)break;else _0x3a4874['push'](_0x3a4874['shift']());}catch(_0x115486){_0x3a4874['push'](_0x3a4874['shift']());}}}(a127_0x3644,0x92933));export function canonicalLovrabetOperation(_0x344237){const _0x13bbce=a127_0x1e05;return[_0x344237[_0x13bbce(0x147)],..._0x344237[_0x13bbce(0x14b)][_0x13bbce(0x151)]()['split'](/\s+/)][_0x13bbce(0x153)](Boolean)[_0x13bbce(0x145)]('.');}function a127_0x3644(){const _0x21eb07=['746112ZIlyZB','join','10MZLoFF','service','1876RquQfR','102248NIBmgO','high-risk-write','command','3471685JgOSDB','4KNvNIr','3077840KKsXgW','315qzwAyN','7714498VjgNRM','trim','writeEventSubject','filter','267VmAvRa','lovrabet.write.completed','risk','6963930CRniXd','write'];a127_0x3644=function(){return _0x21eb07;};return a127_0x3644();}export function createLovrabetWriteMetadata(_0x11fa03,_0x280b11,_0x5f59bf,_0x23c44b){const _0x30a279=a127_0x1e05;if(_0x23c44b||_0x5f59bf['ok']!==!![]||_0x11fa03[_0x30a279(0x156)]!==_0x30a279(0x143)&&_0x11fa03[_0x30a279(0x156)]!==_0x30a279(0x14a))return undefined;const _0x4be68b=_0x11fa03[_0x30a279(0x152)]?.(_0x5f59bf),_0x188b96={'type':_0x30a279(0x155),'operation':_0x280b11,'risk':_0x11fa03[_0x30a279(0x156)],..._0x4be68b?{'subject':_0x4be68b}:{}};return{'lovrabet':{'schemaVersion':0x1,'event':_0x188b96}};}
|
package/lib/runtime/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a128_0x10df(_0x4e0513,_0x3e8d3e){_0x4e0513=_0x4e0513-0x99;const _0x3a7112=a128_0x3a71();let _0x10df29=_0x3a7112[_0x4e0513];return _0x10df29;}(function(_0x78d2dd,_0x5945d6){const _0x257283=a128_0x10df,_0x4914e2=_0x78d2dd();while(!![]){try{const _0x35d202=parseInt(_0x257283(0xaa))/0x1+-parseInt(_0x257283(0xa0))/0x2+-parseInt(_0x257283(0xa2))/0x3*(-parseInt(_0x257283(0xb5))/0x4)+-parseInt(_0x257283(0xa9))/0x5+-parseInt(_0x257283(0xad))/0x6+parseInt(_0x257283(0xb6))/0x7*(parseInt(_0x257283(0x9b))/0x8)+-parseInt(_0x257283(0xac))/0x9;if(_0x35d202===_0x5945d6)break;else _0x4914e2['push'](_0x4914e2['shift']());}catch(_0x21e261){_0x4914e2['push'](_0x4914e2['shift']());}}}(a128_0x3a71,0x1d813));import{buildConfigFromFlags,initGlobalEnvironment}from'../context.js';import{createLovrabetRunnerAdapter,createPipelineEnv,finalizeLovrabetRuntimeState,runCommand}from'../framework/runner.js';import{canonicalLovrabetOperation,createLovrabetWriteMetadata}from'../runtime/event.js';function a128_0x3a71(){const _0x453440=['223719AKSMIP','aborted','2694402ifHtHj','689718SPVREK','riskLevel','dryRun','present','message','command','result','Lovrabet\x20invocation\x20aborted.','284tQvdLz','1212799LTFUDe','definition','data','confirm','8LzbrVj','args','execute','Lovrabet\x20invocation\x20completed\x20without\x20a\x20captured\x20command\x20result.','presentation','1650KHfkOf','rawFlags','5979kaLAnU','stringify','high-risk-write','AbortError','risk','signal','format','12360lJVPOL'];a128_0x3a71=function(){return _0x453440;};return a128_0x3a71();}import{buildLovrabetConfirmationRequest}from'../runtime/confirmation.js';import{resolveLovrabetInvocation}from'../runtime/resolve.js';import{runSerialized}from'../runtime/queue.js';const defaultPresentation={'present'({result:_0x32b289,command:_0x39372a,risk:_0x188b5b,dryRun:_0x125c72}){const _0x506edc=a128_0x10df;return JSON[_0x506edc(0xa3)]({'ok':_0x32b289['ok'],'command':_0x39372a,'risk':_0x188b5b,..._0x125c72?{'dryRun':!![]}:{},..._0x32b289[_0x506edc(0x99)]!==undefined?{'data':_0x32b289[_0x506edc(0x99)]}:{},..._0x32b289[_0x506edc(0xb1)]?{'message':_0x32b289['message']}:{}});}};export async function invokeLovrabet(_0x160c0d,_0x381aa4){const _0x8cc11=a128_0x10df;throwIfAborted(_0x381aa4[_0x8cc11(0xa7)]);const _0x3afd74=await resolveLovrabetInvocation(_0x160c0d),_0x5d6827=canonicalLovrabetOperation(_0x3afd74[_0x8cc11(0xb7)]);return await confirmWriteBeforeQueue(_0x3afd74['definition'],_0x3afd74[_0x8cc11(0xa1)],_0x5d6827,_0x381aa4),runSerialized(async()=>{const _0x27cc8d=_0x8cc11;throwIfAborted(_0x381aa4[_0x27cc8d(0xa7)]);const _0x32371d={},_0x455023=buildConfigFromFlags(_0x3afd74['rawFlags']);await initGlobalEnvironment(_0x455023);const _0x4aff7c=createPipelineEnv(_0x455023,{..._0x3afd74[_0x27cc8d(0xa1)],'yes':_0x3afd74[_0x27cc8d(0xb7)][_0x27cc8d(0xa6)]===_0x27cc8d(0xa4)?!![]:_0x3afd74[_0x27cc8d(0xa1)]['yes'],'nonInteractive':!![]});_0x4aff7c[_0x27cc8d(0x9c)]=_0x3afd74[_0x27cc8d(0x9c)],_0x4aff7c['isNonInteractive']=!![],_0x4aff7c[_0x27cc8d(0xae)]=_0x27cc8d(0xa4);const _0x421d38=withAbortSignal(_0x3afd74[_0x27cc8d(0xb7)],_0x381aa4['signal']),_0x35f396=createLovrabetRunnerAdapter({'formatOutput'(_0x2beb37,_0x579750){const _0x4fdc7b=_0x27cc8d;_0x32371d[_0x4fdc7b(0xb3)]=_0x2beb37,_0x32371d['command']=_0x579750[_0x4fdc7b(0xb2)],_0x32371d[_0x4fdc7b(0xa6)]=_0x579750[_0x4fdc7b(0xa6)],_0x32371d[_0x4fdc7b(0xa8)]=_0x579750[_0x4fdc7b(0xa8)],_0x32371d[_0x4fdc7b(0xaf)]=_0x579750[_0x4fdc7b(0xaf)]===!![];},async 'confirmHighRisk'(){throw new Error('Embedded\x20Lovrabet\x20confirmation\x20must\x20run\x20inside\x20execute.');}});try{await runCommand(_0x421d38,_0x4aff7c,_0x35f396);if(!_0x32371d[_0x27cc8d(0xb3)]||!_0x32371d['command']||!_0x32371d[_0x27cc8d(0xa6)]||!_0x32371d[_0x27cc8d(0xa8)])throw new Error(_0x27cc8d(0x9e));const _0x451e01=_0x381aa4[_0x27cc8d(0x9f)]??defaultPresentation,_0x15b8df=_0x32371d['dryRun']===!![],_0x434973={'result':_0x32371d[_0x27cc8d(0xb3)],'command':_0x32371d[_0x27cc8d(0xb2)],'operation':_0x5d6827,'risk':_0x32371d[_0x27cc8d(0xa6)],'format':_0x32371d[_0x27cc8d(0xa8)],'dryRun':_0x15b8df},_0x25971d=createLovrabetWriteMetadata(_0x3afd74[_0x27cc8d(0xb7)],_0x5d6827,_0x32371d[_0x27cc8d(0xb3)],_0x15b8df);let _0x22dab1;try{_0x22dab1=await _0x451e01[_0x27cc8d(0xb0)](_0x434973);}catch(_0x102b4c){if(!_0x25971d||_0x451e01===defaultPresentation)throw _0x102b4c;_0x22dab1=await defaultPresentation[_0x27cc8d(0xb0)](_0x434973);}return{'operation':_0x5d6827,'risk':_0x32371d['risk'],'mode':_0x15b8df?'dry-run':_0x27cc8d(0x9d),'result':_0x32371d['result'],'output':_0x22dab1,..._0x25971d?{'metadata':_0x25971d}:{}};}finally{await finalizeLovrabetRuntimeState();}});}async function confirmWriteBeforeQueue(_0x4caf7e,_0x497b40,_0x2f780c,_0x5b697d){const _0x516c58=a128_0x10df;if(_0x497b40[_0x516c58(0xaf)]===!![]||_0x4caf7e[_0x516c58(0xa6)]!=='write'&&_0x4caf7e['risk']!==_0x516c58(0xa4))return;await _0x5b697d['confirmation'][_0x516c58(0x9a)](buildLovrabetConfirmationRequest(_0x4caf7e,_0x2f780c,_0x5b697d['signal']));}function withAbortSignal(_0x3b3a60,_0x14f1bc){return{..._0x3b3a60,async 'execute'(_0x5ddde6){return throwIfAborted(_0x14f1bc),_0x3b3a60['execute'](_0x5ddde6);}};}function throwIfAborted(_0x2a7fce){const _0x50e473=a128_0x10df;if(_0x2a7fce?.[_0x50e473(0xab)])throw _0x2a7fce['reason']instanceof Error?_0x2a7fce['reason']:new DOMException(_0x50e473(0xb4),_0x50e473(0xa5));}
|
package/lib/runtime/queue.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a129_0x533149=a129_0xcd68;function a129_0x269d(){const _0xb1eed1=['2867825zRsVGC','626341GyarCS','12zkpcSN','2664536RgDiKf','1124296OVEWrV','66489eULtmt','3120523qfSrup','resolve','1978134roUyqk'];a129_0x269d=function(){return _0xb1eed1;};return a129_0x269d();}(function(_0x47fa24,_0x5b0b88){const _0x1fb204=a129_0xcd68,_0x4ed0b8=_0x47fa24();while(!![]){try{const _0x3c956c=parseInt(_0x1fb204(0x79))/0x1+parseInt(_0x1fb204(0x71))/0x2*(-parseInt(_0x1fb204(0x74))/0x3)+-parseInt(_0x1fb204(0x73))/0x4+parseInt(_0x1fb204(0x78))/0x5+-parseInt(_0x1fb204(0x77))/0x6+-parseInt(_0x1fb204(0x75))/0x7+parseInt(_0x1fb204(0x72))/0x8;if(_0x3c956c===_0x5b0b88)break;else _0x4ed0b8['push'](_0x4ed0b8['shift']());}catch(_0x306965){_0x4ed0b8['push'](_0x4ed0b8['shift']());}}}(a129_0x269d,0x53d93));let tail=Promise[a129_0x533149(0x76)]();function a129_0xcd68(_0x2ff986,_0x5cead0){_0x2ff986=_0x2ff986-0x71;const _0x269d0b=a129_0x269d();let _0xcd68f9=_0x269d0b[_0x2ff986];return _0xcd68f9;}export async function runSerialized(_0x10b3ef){const _0x1c8a09=tail;let _0x46650c;tail=new Promise(_0x1690e1=>{_0x46650c=_0x1690e1;}),await _0x1c8a09['catch'](()=>undefined);try{return await _0x10b3ef();}finally{_0x46650c();}}
|
package/lib/runtime/resolve.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5e97f2,_0x8d3834){const _0xdd806=a130_0x3121,_0x52ee9e=_0x5e97f2();while(!![]){try{const _0x1a8e53=parseInt(_0xdd806(0x18a))/0x1+parseInt(_0xdd806(0x182))/0x2+parseInt(_0xdd806(0x185))/0x3+parseInt(_0xdd806(0x183))/0x4+parseInt(_0xdd806(0x18b))/0x5+-parseInt(_0xdd806(0x192))/0x6+parseInt(_0xdd806(0x186))/0x7;if(_0x1a8e53===_0x8d3834)break;else _0x52ee9e['push'](_0x52ee9e['shift']());}catch(_0x434e61){_0x52ee9e['push'](_0x52ee9e['shift']());}}}(a130_0x3682,0x7068f));import a130_0x140379 from'meow';import{findDefinition,getServiceEntry,isKnownService,resolveRemovedCommand}from'../commands/registry.js';import{resolveDynamicServiceCommand}from'../commands/service/dynamic.js';import{buildMeowFlags}from'../constant/cli.js';function a130_0x3121(_0x383e15,_0x4bdf9e){_0x383e15=_0x383e15-0x180;const _0x3682bf=a130_0x3682();let _0x312139=_0x3682bf[_0x383e15];return _0x312139;}import{CliErrors}from'../errors.js';export async function resolveLovrabetInvocation(_0x44a9f3){const _0x2b8516=a130_0x3121,_0x134d71=a130_0x140379('',{'importMeta':import.meta,'argv':_0x44a9f3,'flags':buildMeowFlags(),'autoHelp':![],'autoVersion':![]}),_0x44470a=[..._0x134d71['input']],_0x401e9c=_0x134d71[_0x2b8516(0x18f)];await correctFlags(_0x401e9c);const _0x256023=_0x44470a[0x0];if(!_0x256023)throw CliErrors[_0x2b8516(0x18c)](_0x2b8516(0x189));const _0x154e8c=resolveRemovedCommand(_0x256023,_0x44470a[0x1]);if(_0x154e8c)throw CliErrors[_0x2b8516(0x18c)](_0x154e8c[_0x2b8516(0x187)],_0x154e8c['hint']);if(!isKnownService(_0x256023)){const _0x28a7da=resolveDynamicServiceCommand(_0x44470a,_0x401e9c);if(!_0x28a7da)throw CliErrors[_0x2b8516(0x188)](_0x44470a[_0x2b8516(0x191)]('\x20'));return Object['assign'](_0x401e9c,_0x28a7da['flags']),{'definition':_0x28a7da[_0x2b8516(0x18d)],'rawFlags':_0x401e9c,'args':_0x28a7da[_0x2b8516(0x181)]};}const _0x3633fe=getServiceEntry(_0x256023),_0x490388=_0x44470a[0x1]||_0x3633fe['defaultCommand'];if(!_0x490388)throw CliErrors['validation'](_0x2b8516(0x18e)+_0x256023+'\x22.');const _0x57f48e=findDefinition(_0x256023,_0x490388);if(!_0x57f48e)throw CliErrors[_0x2b8516(0x188)](_0x256023+'\x20'+_0x490388);return{'definition':_0x57f48e,'rawFlags':_0x401e9c,'args':_0x44470a[_0x2b8516(0x193)](0x2)};}async function correctFlags(_0x42f73b){const _0x40881a=a130_0x3121;try{const {correctFlags:_0xfb3444}=await import(_0x40881a(0x184)),{getAllDefinitions:_0x244185}=await import(_0x40881a(0x180)),_0x3b28a3=_0x244185()[_0x40881a(0x190)](_0x11c15e=>_0x11c15e[_0x40881a(0x18f)]??[]),_0x408eb4=_0xfb3444(_0x42f73b,_0x3b28a3);Object['assign'](_0x42f73b,_0x408eb4[_0x40881a(0x18f)]);}catch{}}function a130_0x3682(){const _0x3fadab=['message','unknownCommand','Lovrabet\x20argv\x20must\x20include\x20a\x20service\x20and\x20command.','21053MtHutE','827750dcxvWw','validation','definition','Lovrabet\x20argv\x20must\x20include\x20a\x20command\x20for\x20service\x20\x22','flags','flatMap','join','3412908yjxbFM','slice','../commands/registry.js','args','593810HnRixR','1545212KXwwVX','../framework/preparse.js','420441GWUcsK','135037PWxPde'];a130_0x3682=function(){return _0x3fadab;};return a130_0x3682();}
|