@lovrabet/lovrabet-cli 2.3.2-beta.2 → 2.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cli.js +1 -1
- package/lib/commands/api-doc/index.js +1 -1
- package/lib/commands/app/cache.js +1 -1
- package/lib/commands/app/definitions.js +1 -1
- package/lib/commands/app/eligibility.js +1 -1
- package/lib/commands/app/mock-loader.js +1 -1
- package/lib/commands/app/remote-source.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/artifact/index.js +1 -1
- package/lib/commands/auth/device.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/auth/prompt.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/exec.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/common/config-policy.js +1 -1
- package/lib/commands/common/constraints.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/config/definitions.js +1 -1
- package/lib/commands/config/init.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/data/index.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/sdk-doc.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/init.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/permit/dataset-get.js +1 -1
- package/lib/commands/permit/dataset-set.js +1 -1
- package/lib/commands/permit/index.js +1 -1
- package/lib/commands/permit/page-get.js +1 -1
- package/lib/commands/permit/page-set.js +1 -1
- package/lib/commands/permit/role-menus-set.js +1 -1
- package/lib/commands/permit/role-menus.js +1 -1
- package/lib/commands/permit/shared.js +1 -1
- package/lib/commands/personal-bff/index.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/create.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/schedule/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/service/dynamic.js +1 -1
- package/lib/commands/service/function-name-adapter.js +1 -1
- package/lib/commands/service/index.js +1 -1
- package/lib/commands/service/registry.js +1 -1
- package/lib/commands/skill/commands/create.js +1 -1
- package/lib/commands/skill/commands/diagram.js +1 -1
- package/lib/commands/skill/commands/install.js +1 -1
- package/lib/commands/skill/commands/list.js +1 -1
- package/lib/commands/skill/commands/push.js +1 -1
- package/lib/commands/skill/commands/validate.js +1 -1
- package/lib/commands/skill/diagram.js +1 -1
- package/lib/commands/skill/flags.js +1 -1
- package/lib/commands/skill/index.js +1 -1
- package/lib/commands/skill/manifest-helpers.js +1 -1
- package/lib/commands/skill/push-execute.js +1 -1
- package/lib/commands/skill/push-flow-helpers.js +1 -1
- package/lib/commands/skill/push-retarget.js +1 -1
- package/lib/commands/skill/scopes.js +1 -1
- package/lib/commands/skill/summary.js +1 -1
- package/lib/commands/skill/templates.js +1 -1
- package/lib/commands/skill/validate.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/update.js +1 -1
- package/lib/commands/user-account/bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/app.js +1 -1
- package/lib/constant/auth-mode.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/distribution.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/product.js +1 -1
- package/lib/constant/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/url.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/kb-search-client.js +1 -1
- package/lib/core/sdk-client.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/dryrun.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/preparse.js +1 -1
- package/lib/framework/rate-limit.js +1 -1
- package/lib/framework/raw-flags.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-confirmation.js +1 -1
- package/lib/framework/runner-error.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/service-order.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/generated/official-routing.js +1 -1
- package/lib/generated/routing-contract.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/runtime-skill-sync/constants.js +1 -1
- package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
- package/lib/skills/runtime-skill-sync/hashing.js +1 -1
- package/lib/skills/runtime-skill-sync/install-target.js +1 -1
- package/lib/skills/runtime-skill-sync/links.js +1 -1
- package/lib/skills/runtime-skill-sync/list-local.js +1 -1
- package/lib/skills/runtime-skill-sync/local-files.js +1 -1
- package/lib/skills/runtime-skill-sync/materialize.js +1 -1
- package/lib/skills/runtime-skill-sync/metadata.js +1 -1
- package/lib/skills/runtime-skill-sync/paths.js +1 -1
- package/lib/skills/runtime-skill-sync/push.js +1 -1
- package/lib/skills/runtime-skill-sync/scopes.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
- package/lib/skills/runtime-skill-sync.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/utils/access-key-redaction.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/lossless-json.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
- package/skills/lovrabet/SKILL.md +1 -1
- package/skills/lovrabet.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4a690e,_0x2b2fc0){var _0x268323=a108_0x3f80,_0x462ed9=_0x4a690e();while(!![]){try{var _0x25f145=parseInt(_0x268323(0x17f))/0x1*(parseInt(_0x268323(0x17b))/0x2)+parseInt(_0x268323(0x17a))/0x3+parseInt(_0x268323(0x179))/0x4+-parseInt(_0x268323(0x17c))/0x5+-parseInt(_0x268323(0x17e))/0x6+-parseInt(_0x268323(0x181))/0x7*(parseInt(_0x268323(0x17d))/0x8)+-parseInt(_0x268323(0x180))/0x9*(-parseInt(_0x268323(0x178))/0xa);if(_0x25f145===_0x2b2fc0)break;else _0x462ed9['push'](_0x462ed9['shift']());}catch(_0x4f4489){_0x462ed9['push'](_0x462ed9['shift']());}}}(a108_0xbb90,0x57919));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';function a108_0xbb90(){var _0x4f3091=['1876420BGZhRb','48IubyEC','127206BVWIWH','3XPzGuJ','9hMhYsh','776881CYWzQb','4182220gyVGHo','623976bimbnp','1286457qwAGdB','278686PplxDR'];a108_0xbb90=function(){return _0x4f3091;};return a108_0xbb90();}function a108_0x3f80(_0x102e91,_0x50d4e8){_0x102e91=_0x102e91-0x178;var _0xbb9008=a108_0xbb90();var _0x3f809d=_0xbb9008[_0x102e91];return _0x3f809d;}import{buildAllFlags as a108_0x223b30}from'@lovrabet/cli-framework';export function buildAllFlags(_0x23490a){return a108_0x223b30(_0x23490a,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
|
package/lib/framework/dryrun.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a109_0x733f(){const _0x499e0c=['143651qVOtMg','799896MxJYkK','8LTqRPQ','77oAVfGa','10peBYio','3015476SjWmNW','1664810gTXKha','11187576kkQmvp','description','41932305TCHxhG','2595909sVWLYz'];a109_0x733f=function(){return _0x499e0c;};return a109_0x733f();}function a109_0x4e9d(_0x1338bb,_0x1a1661){_0x1338bb=_0x1338bb-0x92;const _0x733fe9=a109_0x733f();let _0x4e9d16=_0x733fe9[_0x1338bb];return _0x4e9d16;}(function(_0x359692,_0x1ba170){const _0x248cea=a109_0x4e9d,_0x52bbf9=_0x359692();while(!![]){try{const _0x93faec=-parseInt(_0x248cea(0x94))/0x1+parseInt(_0x248cea(0x99))/0x2+-parseInt(_0x248cea(0x93))/0x3*(parseInt(_0x248cea(0x96))/0x4)+-parseInt(_0x248cea(0x9a))/0x5+-parseInt(_0x248cea(0x9b))/0x6+-parseInt(_0x248cea(0x97))/0x7*(parseInt(_0x248cea(0x95))/0x8)+parseInt(_0x248cea(0x92))/0x9*(parseInt(_0x248cea(0x98))/0xa);if(_0x93faec===_0x1ba170)break;else _0x52bbf9['push'](_0x52bbf9['shift']());}catch(_0x3640aa){_0x52bbf9['push'](_0x52bbf9['shift']());}}}(a109_0x733f,0xf2f8b));export function dryRun(_0x51e543,_0x2d4fa7){const _0x360f64={'method':_0x51e543,'url':_0x2d4fa7},_0x2b9e2d={'body'(_0x1651c2){return _0x360f64['body']=_0x1651c2,_0x2b9e2d;},'description'(_0x3ee0c0){const _0x556c7c=a109_0x4e9d;return _0x360f64[_0x556c7c(0x9c)]=_0x3ee0c0,_0x2b9e2d;},'build'(){return{..._0x360f64};}};return _0x2b9e2d;}
|
package/lib/framework/flags.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x577db8,_0x10562d){const _0x26d5bc=a110_0x5417,_0x16014c=_0x577db8();while(!![]){try{const _0x2f4219=-parseInt(_0x26d5bc(0x16c))/0x1*(-parseInt(_0x26d5bc(0x162))/0x2)+-parseInt(_0x26d5bc(0x16a))/0x3*(parseInt(_0x26d5bc(0x167))/0x4)+-parseInt(_0x26d5bc(0x166))/0x5*(parseInt(_0x26d5bc(0x16b))/0x6)+-parseInt(_0x26d5bc(0x164))/0x7+-parseInt(_0x26d5bc(0x16d))/0x8*(-parseInt(_0x26d5bc(0x169))/0x9)+-parseInt(_0x26d5bc(0x168))/0xa+-parseInt(_0x26d5bc(0x165))/0xb*(-parseInt(_0x26d5bc(0x163))/0xc);if(_0x2f4219===_0x10562d)break;else _0x16014c['push'](_0x16014c['shift']());}catch(_0x450655){_0x16014c['push'](_0x16014c['shift']());}}}(a110_0x2ef1,0x5f374));function a110_0x2ef1(){const _0x37414d=['8hhZVMS','5227050UnxBXn','6967917YVlSIx','537081bFcwid','86466CsaRwU','1UFwjmS','8RTKnCQ','482456yvmCPQ','10056zPoHuO','1078119bkSBbk','9724VjeoJi','115DnWfgt'];a110_0x2ef1=function(){return _0x37414d;};return a110_0x2ef1();}import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers['parseFlags'];function a110_0x5417(_0x2107e4,_0x3a6607){_0x2107e4=_0x2107e4-0x162;const _0x2ef1e7=a110_0x2ef1();let _0x541745=_0x2ef1e7[_0x2107e4];return _0x541745;}export const validateFlags=helpers['validateFlags'];
|
package/lib/framework/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2dcc6c,_0x2fa974){const _0xbc9bef=a111_0x10e3,_0x394580=_0x2dcc6c();while(!![]){try{const _0x2e10e0=-parseInt(_0xbc9bef(0x1dd))/0x1*(parseInt(_0xbc9bef(0x1db))/0x2)+-parseInt(_0xbc9bef(0x1d1))/0x3+parseInt(_0xbc9bef(0x1ce))/0x4+parseInt(_0xbc9bef(0x1cf))/0x5*(-parseInt(_0xbc9bef(0x1d0))/0x6)+-parseInt(_0xbc9bef(0x1da))/0x7+parseInt(_0xbc9bef(0x1cd))/0x8+parseInt(_0xbc9bef(0x1d8))/0x9;if(_0x2e10e0===_0x2fa974)break;else _0x394580['push'](_0x394580['shift']());}catch(_0x429f66){_0x394580['push'](_0x394580['shift']());}}}(a111_0x56aa,0xece99));import{createHelpGenerators}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';function a111_0x10e3(_0xd6aac9,_0x36ae75){_0xd6aac9=_0xd6aac9-0x1ca;const _0x56aaa5=a111_0x56aa();let _0x10e32f=_0x56aaa5[_0xd6aac9];return _0x10e32f;}import{insertDynamicServicesAfterServiceTree}from'../framework/service-order.js';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';import{PRODUCT_CONFIG}from'../constant/product.js';function a111_0x56aa(){const _0x2b6fff=['22220676iQMmDc','generateCommandHelp','5947375pjJleo','1406978kMRATs','newConfigFileName','1GnmzIJ','\x20or\x20--appcode).','map','service','12437248BcuQxi','6894524MOMzcF','1745ARHjir','26610QEkEGZ','5027787dGFTZc','filter','get','generateFullHelp','generateServiceHelp','has','Requires\x20appcode\x20(set\x20via\x20'];a111_0x56aa=function(){return _0x2b6fff;};return a111_0x56aa();}function createGenerators(){const _0x46a4de=a111_0x10e3;return createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':insertDynamicServicesAfterServiceTree(serviceRegistry,safeListDynamicServiceEntries()),'getServiceEntry':getAnyServiceEntry,'getServiceDefinitions':getAnyServiceDefinitions,'buildAllFlags':buildAllFlags,'appPrerequisiteText':_0x46a4de(0x1d7)+PRODUCT_CONFIG[_0x46a4de(0x1dc)]+_0x46a4de(0x1ca)});}export function generateCommandHelp(_0x194a90){const _0x4aaf3f=a111_0x10e3;return createGenerators()[_0x4aaf3f(0x1d9)](_0x194a90);}export function generateServiceHelp(_0x48544b){const _0x77a2ea=a111_0x10e3;return createGenerators()[_0x77a2ea(0x1d5)](_0x48544b);}export function generateFullHelp(){const _0x4a29c9=a111_0x10e3;return createGenerators()[_0x4a29c9(0x1d4)]();}function getAnyServiceEntry(_0x1883c7){const _0x478ea8=getServiceEntry(_0x1883c7);if(_0x478ea8)return _0x478ea8;try{return getDynamicServiceEntry(_0x1883c7);}catch{return undefined;}}function getAnyServiceDefinitions(_0x244f14){const _0x5e2124=a111_0x10e3,_0x39e0ee=serviceGroups[_0x5e2124(0x1d3)](_0x244f14);if(_0x39e0ee)return _0x39e0ee;try{return getDynamicServiceDefinitions(_0x244f14);}catch{return undefined;}}function safeListDynamicServiceEntries(){const _0x3912e7=a111_0x10e3,_0x4e7a2e=new Set(serviceRegistry[_0x3912e7(0x1cb)](_0x375979=>_0x375979[_0x3912e7(0x1cc)]));try{return listDynamicServiceEntries()[_0x3912e7(0x1d2)](_0xfc0cc9=>!_0x4e7a2e[_0x3912e7(0x1d6)](_0xfc0cc9[_0x3912e7(0x1cc)]));}catch{return[];}}
|
package/lib/framework/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2060d6,_0x32529c){var _0x4264dc=a112_0x5e04,_0x3d2d3b=_0x2060d6();while(!![]){try{var _0x1adb16=-parseInt(_0x4264dc(0x1f3))/0x1*(-parseInt(_0x4264dc(0x1f5))/0x2)+parseInt(_0x4264dc(0x1f7))/0x3+-parseInt(_0x4264dc(0x1f4))/0x4+-parseInt(_0x4264dc(0x1f6))/0x5+parseInt(_0x4264dc(0x1f8))/0x6+parseInt(_0x4264dc(0x1fa))/0x7*(-parseInt(_0x4264dc(0x1f9))/0x8)+parseInt(_0x4264dc(0x1fb))/0x9;if(_0x1adb16===_0x32529c)break;else _0x3d2d3b['push'](_0x3d2d3b['shift']());}catch(_0xc5b918){_0x3d2d3b['push'](_0x3d2d3b['shift']());}}}(a112_0x2d5f,0xbfde0));export{runCommand}from'../framework/runner.js';function a112_0x2d5f(){var _0x459c56=['3032zuLxlM','6510KqIkDG','14304303IdomCd','6PFVlLh','5544692WvCadE','466998oAbDTI','7220055RUXsHE','270882FsohfK','5327322bGxyZe'];a112_0x2d5f=function(){return _0x459c56;};return a112_0x2d5f();}export{parseFlags,validateFlags}from'../framework/flags.js';function a112_0x5e04(_0x3b0ec8,_0x156b4a){_0x3b0ec8=_0x3b0ec8-0x1f3;var _0x2d5f8d=a112_0x2d5f();var _0x5e04cb=_0x2d5f8d[_0x3b0ec8];return _0x5e04cb;}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';export{riskLevelOrder,isValidFormat}from'../framework/types.js';
|
package/lib/framework/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x3e35f0,_0x390f0f){const _0x395782=a113_0x1811,_0x2f80b9=_0x3e35f0();while(!![]){try{const _0x1c77a3=parseInt(_0x395782(0xb5))/0x1*(parseInt(_0x395782(0xb7))/0x2)+parseInt(_0x395782(0xaf))/0x3*(parseInt(_0x395782(0xad))/0x4)+-parseInt(_0x395782(0xb0))/0x5+parseInt(_0x395782(0xaa))/0x6+parseInt(_0x395782(0xae))/0x7*(parseInt(_0x395782(0xb6))/0x8)+parseInt(_0x395782(0xb3))/0x9*(parseInt(_0x395782(0xab))/0xa)+parseInt(_0x395782(0xb8))/0xb*(-parseInt(_0x395782(0xb1))/0xc);if(_0x1c77a3===_0x390f0f)break;else _0x2f80b9['push'](_0x2f80b9['shift']());}catch(_0x8ff824){_0x2f80b9['push'](_0x2f80b9['shift']());}}}(a113_0x5f45,0xad84b));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0x22b663,_0x2fd336){const _0x11616d=a113_0x1811,_0x3b54c4=_0x22b663[_0x11616d(0xac)],{_notice:_0x458277,..._0x56f838}=_0x22b663;void _0x458277,baseFormatOutput(_0x56f838,_0x2fd336),_0x2fd336['format']===_0x11616d(0xb4)&&printPrettyNotice(_0x3b54c4);}function a113_0x1811(_0x8f709d,_0x17b761){_0x8f709d=_0x8f709d-0xaa;const _0x5f452e=a113_0x5f45();let _0x1811fd=_0x5f452e[_0x8f709d];return _0x1811fd;}function printPrettyNotice(_0x87149c){const _0x3f37c2=a113_0x1811;if(!_0x87149c?.[_0x3f37c2(0xb9)])return;console['error'](_0x87149c[_0x3f37c2(0xb9)][_0x3f37c2(0xb2)]+'\x20('+_0x87149c['update']['url']+')');}function a113_0x5f45(){const _0x4f33b8=['pretty','1IgWADK','2514008UHOMHW','89730STaiVr','37532BFTRMG','update','7567932jSbRVf','63610MbdXeY','_notice','4804hSvUkW','7gisbsa','1383czUSUw','2555035cFBXfN','3864ymRtbq','message','207tXPmob'];a113_0x5f45=function(){return _0x4f33b8;};return a113_0x5f45();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a114_0xf508(){const _0x2fd4fa=['3205585sawMmg','corrected','sticky','env','2292168RWUQDE','format','8sRXmbA','11838744vNhdPW','help','type','number','global','appcode','toUpperCase','625590eSQcmw','app','has','replace','1272660YAtWNV','string','toLowerCase','yes','version','boolean','add','dryRun','112184FJghYH','2173104EivksM','get','original','length','keys','name','indexOf','dry-run','set','slice'];a114_0xf508=function(){return _0x2fd4fa;};return a114_0xf508();}(function(_0x37ff9a,_0x1f29f2){const _0x1f0422=a114_0x5736,_0x447834=_0x37ff9a();while(!![]){try{const _0x29536f=parseInt(_0x1f0422(0x111))/0x1*(-parseInt(_0x1f0422(0xfd))/0x2)+-parseInt(_0x1f0422(0xfb))/0x3+parseInt(_0x1f0422(0x112))/0x4+-parseInt(_0x1f0422(0x11c))/0x5+parseInt(_0x1f0422(0x109))/0x6+parseInt(_0x1f0422(0x105))/0x7+parseInt(_0x1f0422(0xfe))/0x8;if(_0x29536f===_0x1f29f2)break;else _0x447834['push'](_0x447834['shift']());}catch(_0x395bda){_0x447834['push'](_0x447834['shift']());}}}(a114_0xf508,0x72ea2));export function toKebab(_0x1ae435){const _0x2d814a=a114_0x5736;return _0x1ae435['replace'](/_/g,'-')[_0x2d814a(0x108)](/-([A-Z]+)/g,(_0x5e2bb8,_0x2ca27f)=>'-'+_0x2ca27f[_0x2d814a(0x10b)]())[_0x2d814a(0x108)](/([a-z0-9])([A-Z])/g,(_0xf050b2,_0x43ec8f,_0x41bd33)=>_0x43ec8f+'-'+_0x41bd33)['toLowerCase']();}function a114_0x5736(_0x1eb2ab,_0x5296ad){_0x1eb2ab=_0x1eb2ab-0xfb;const _0xf50874=a114_0xf508();let _0x5736c3=_0xf50874[_0x1eb2ab];return _0x5736c3;}function buildKnownFlags(_0x516ba6){const _0x4fcbae=a114_0x5736,_0x39dd9f=new Set();for(const _0x36fae0 of _0x516ba6){_0x39dd9f[_0x4fcbae(0x10f)](_0x36fae0[_0x4fcbae(0x117)]),_0x39dd9f[_0x4fcbae(0x10f)](toCamelCase(_0x36fae0['name']));}for(const _0xf18618 of[_0x4fcbae(0x119),_0x4fcbae(0x110),_0x4fcbae(0x10c),_0x4fcbae(0xfc)]){_0x39dd9f[_0x4fcbae(0x10f)](_0xf18618);}for(const _0x5add6f of[_0x4fcbae(0xff),_0x4fcbae(0x11f),_0x4fcbae(0x103),_0x4fcbae(0x106),'nonInteractive','non-interactive','ci',_0x4fcbae(0x102),_0x4fcbae(0x10d)]){_0x39dd9f[_0x4fcbae(0x10f)](_0x5add6f);}return _0x39dd9f;}function buildFlagTypeMap(_0x5dfea3){const _0x3b3161=a114_0x5736,_0x3563ec=new Map();for(const _0x2d6b8a of _0x5dfea3){_0x3563ec['set'](_0x2d6b8a[_0x3b3161(0x117)],_0x2d6b8a[_0x3b3161(0x100)]),_0x3563ec[_0x3b3161(0x11a)](toCamelCase(_0x2d6b8a['name']),_0x2d6b8a[_0x3b3161(0x100)]);}return _0x3563ec;}function toCamelCase(_0x11993d){const _0x44b082=a114_0x5736;return _0x11993d[_0x44b082(0x108)](/-([a-z])/g,(_0x530998,_0x251b29)=>_0x251b29[_0x44b082(0x104)]());}function aliasHandler(_0x2d3276,_0x1504aa){const _0x44f3e3=a114_0x5736,_0x42f943=[];for(const _0x2b99be of Object[_0x44f3e3(0x116)](_0x2d3276)){if(_0x1504aa[_0x44f3e3(0x107)](_0x2b99be))continue;const _0x587ca8=toKebab(_0x2b99be);_0x587ca8!==_0x2b99be&&_0x1504aa[_0x44f3e3(0x107)](_0x587ca8)&&_0x42f943['push']({'original':_0x2b99be,'corrected':_0x587ca8,'handler':'alias'});}return _0x42f943;}function stickyHandler(_0xe55902,_0x31ceaf,_0x216dd0){const _0x18f7ed=a114_0x5736,_0x1614c5=[];for(const [_0x12860a,_0x53254e]of Object['entries'](_0xe55902)){if(_0x53254e!==!![])continue;for(let _0x2101a3=_0x12860a[_0x18f7ed(0x115)]-0x1;_0x2101a3>0x0;_0x2101a3--){const _0x46cd2b=_0x12860a[_0x18f7ed(0x11b)](0x0,_0x2101a3),_0x47b9f3=_0x12860a['slice'](_0x2101a3),_0x13e27a=toKebab(_0x46cd2b),_0x59df1f=toCamelCase(_0x46cd2b),_0x56f9d0=_0x31ceaf['has'](_0x46cd2b)?_0x46cd2b:_0x31ceaf['has'](_0x13e27a)?_0x13e27a:_0x31ceaf[_0x18f7ed(0x107)](_0x59df1f)?_0x59df1f:null;if(!_0x56f9d0)continue;const _0x32e337=_0x216dd0[_0x18f7ed(0x113)](_0x56f9d0)??_0x18f7ed(0x10a);let _0x1f8c24;if(_0x32e337===_0x18f7ed(0x101)){const _0x120ef0=Number(_0x47b9f3);if(isNaN(_0x120ef0)||_0x47b9f3==='')continue;_0x1f8c24=_0x120ef0;}else{if(_0x32e337===_0x18f7ed(0x10e))continue;else{if(_0x47b9f3==='')continue;_0x1f8c24=_0x47b9f3;}}_0x1614c5['push']({'original':_0x12860a,'corrected':_0x56f9d0+'='+_0x1f8c24,'handler':_0x18f7ed(0x11e)});break;}}return _0x1614c5;}export function correctFlags(_0x25e5d7,_0xc88a25){const _0x421802=a114_0x5736,_0x591c71=buildKnownFlags(_0xc88a25),_0x1fc111=buildFlagTypeMap(_0xc88a25),_0x290fc8=aliasHandler(_0x25e5d7,_0x591c71),_0x5963d8=stickyHandler(_0x25e5d7,_0x591c71,_0x1fc111),_0x192e70=[..._0x290fc8,..._0x5963d8];if(_0x192e70['length']===0x0)return{'flags':_0x25e5d7,'corrections':[]};const _0x220ab3={..._0x25e5d7},_0x582417=new Set();for(const _0x15e672 of _0x290fc8){_0x220ab3[_0x15e672[_0x421802(0x11d)]]=_0x25e5d7[_0x15e672[_0x421802(0x114)]],_0x582417[_0x421802(0x10f)](_0x15e672[_0x421802(0x114)]);}for(const _0x555b1b of _0x5963d8){const _0x1a0364=_0x555b1b[_0x421802(0x11d)][_0x421802(0x118)]('='),_0x57acf3=_0x555b1b[_0x421802(0x11d)]['slice'](0x0,_0x1a0364),_0x17e8f5=_0x555b1b[_0x421802(0x11d)][_0x421802(0x11b)](_0x1a0364+0x1),_0x3df365=_0x1fc111[_0x421802(0x113)](_0x57acf3)??'string';_0x3df365==='number'?_0x220ab3[_0x57acf3]=Number(_0x17e8f5):_0x220ab3[_0x57acf3]=_0x17e8f5,_0x582417['add'](_0x555b1b[_0x421802(0x114)]);}for(const _0xf0702b of _0x582417){delete _0x220ab3[_0xf0702b];}return{'flags':_0x220ab3,'corrections':_0x192e70};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a115_0x24a4c0=a115_0x43d1;(function(_0x23d505,_0x4694ad){const _0x29343f=a115_0x43d1,_0x35495f=_0x23d505();while(!![]){try{const _0x2ef0c2=parseInt(_0x29343f(0x1ad))/0x1+parseInt(_0x29343f(0x1b6))/0x2*(-parseInt(_0x29343f(0x1ab))/0x3)+-parseInt(_0x29343f(0x1af))/0x4*(parseInt(_0x29343f(0x1c4))/0x5)+parseInt(_0x29343f(0x1bc))/0x6+parseInt(_0x29343f(0x1c7))/0x7*(-parseInt(_0x29343f(0x1aa))/0x8)+parseInt(_0x29343f(0x1ae))/0x9*(-parseInt(_0x29343f(0x1c2))/0xa)+-parseInt(_0x29343f(0x1b2))/0xb*(-parseInt(_0x29343f(0x1a9))/0xc);if(_0x2ef0c2===_0x4694ad)break;else _0x35495f['push'](_0x35495f['shift']());}catch(_0x4d5892){_0x35495f['push'](_0x35495f['shift']());}}}(a115_0x112a,0xd18eb));import{CliErrors}from'../errors.js';function a115_0x112a(){const _0x5b7669=['retryAfter','272762eQUlRz','isInteger','EXCEED_MAX_QPS_LIMIT','IP_RATE_LIMIT_EXCEEDED','\x20seconds\x20before\x20retrying.','341196HQFFrD','40YTPNyg','3162mSucWn','number','502219TEXHkq','9BtdImE','548dehkIw','status','Retry\x20after\x20a\x20short\x20delay.','451GqOLNM','isArray','message','errorCode','1228tlpeUQ','retry-after','Retry-After','test','Request\x20rate\x20limit\x20exceeded.','function','3158364pOfFoU','entries','string','object','toLowerCase','has','659080kPYVZZ','MAX_QPS_LIMIT','15625xIAotq','call'];a115_0x112a=function(){return _0x5b7669;};return a115_0x112a();}const RATE_LIMIT_ERROR_CODES=new Set([a115_0x24a4c0(0x1c9),a115_0x24a4c0(0x1c3),a115_0x24a4c0(0x1a7)]);function nonEmptyString(_0x3e1b24){const _0x195caa=a115_0x24a4c0;if(typeof _0x3e1b24!==_0x195caa(0x1be))return undefined;const _0x433414=_0x3e1b24['trim']();return _0x433414||undefined;}function buildRetryHint(_0x75772){const _0x1c63f8=a115_0x24a4c0,_0x4fa83e=nonEmptyString(_0x75772),_0x33758c=_0x4fa83e?/^\d+$/['test'](_0x4fa83e)?'Wait\x20'+_0x4fa83e+_0x1c63f8(0x1a8):'Retry\x20after\x20'+_0x4fa83e+'.':_0x1c63f8(0x1b1);return _0x33758c+'\x20Retry\x20only\x20the\x20failed\x20item;\x20keep\x20requests\x20serial\x20and\x20preserve\x20completed\x20checkpoints.';}export function createRateLimitError(_0x4102c9){const _0x2405cc=a115_0x24a4c0,_0x39d233=nonEmptyString(_0x4102c9[_0x2405cc(0x1b5)])?.['toUpperCase'](),_0x51e4ef=Number(_0x4102c9[_0x2405cc(0x1b0)])===0x1ad||_0x39d233!==undefined&&RATE_LIMIT_ERROR_CODES[_0x2405cc(0x1c1)](_0x39d233);if(!_0x51e4ef)return undefined;return CliErrors['rateLimited'](nonEmptyString(_0x4102c9[_0x2405cc(0x1b4)])??_0x2405cc(0x1ba),buildRetryHint(_0x4102c9[_0x2405cc(0x1c6)]));}function a115_0x43d1(_0xcc38cd,_0x25c28a){_0xcc38cd=_0xcc38cd-0x1a7;const _0x112a1b=a115_0x112a();let _0x43d12f=_0x112a1b[_0xcc38cd];return _0x43d12f;}export function readRetryAfter(_0x4b218d){const _0x4ffa6e=a115_0x24a4c0;if(!_0x4b218d||typeof _0x4b218d!=='object')return undefined;const _0xbf518c=_0x4b218d['get'];if(typeof _0xbf518c===_0x4ffa6e(0x1bb)){const _0x23f817=_0xbf518c[_0x4ffa6e(0x1c5)](_0x4b218d,_0x4ffa6e(0x1b8))??_0xbf518c[_0x4ffa6e(0x1c5)](_0x4b218d,'retry-after');return nonEmptyString(_0x23f817);}for(const [_0x1b0f78,_0x1b4e8c]of Object[_0x4ffa6e(0x1bd)](_0x4b218d)){if(_0x1b0f78[_0x4ffa6e(0x1c0)]()===_0x4ffa6e(0x1b7))return nonEmptyString(_0x1b4e8c)??(typeof _0x1b4e8c===_0x4ffa6e(0x1ac)?String(_0x1b4e8c):undefined);}return undefined;}export function readRetryAfterSeconds(_0x2db903){const _0xec733f=a115_0x24a4c0;if(!_0x2db903||typeof _0x2db903!==_0xec733f(0x1bf)||Array[_0xec733f(0x1b3)](_0x2db903))return undefined;const _0x58bbc8=_0x2db903['retryAfterSeconds'];if(typeof _0x58bbc8==='number')return Number[_0xec733f(0x1c8)](_0x58bbc8)&&_0x58bbc8>=0x0?String(_0x58bbc8):undefined;const _0x36652b=nonEmptyString(_0x58bbc8);return _0x36652b&&/^\d+$/[_0xec733f(0x1b9)](_0x36652b)?_0x36652b:undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a116_0x360a1b=a116_0x5009;(function(_0x13f549,_0x2afce8){const _0x5ccc4c=a116_0x5009,_0x56af67=_0x13f549();while(!![]){try{const _0x320d5c=-parseInt(_0x5ccc4c(0xff))/0x1*(parseInt(_0x5ccc4c(0x10b))/0x2)+-parseInt(_0x5ccc4c(0x113))/0x3*(parseInt(_0x5ccc4c(0xfd))/0x4)+parseInt(_0x5ccc4c(0x10c))/0x5+-parseInt(_0x5ccc4c(0x100))/0x6+-parseInt(_0x5ccc4c(0x116))/0x7+-parseInt(_0x5ccc4c(0x109))/0x8+parseInt(_0x5ccc4c(0x101))/0x9;if(_0x320d5c===_0x2afce8)break;else _0x56af67['push'](_0x56af67['shift']());}catch(_0x5e2d09){_0x56af67['push'](_0x56af67['shift']());}}}(a116_0x33fb,0x6adbc));import{CliErrors}from'../errors.js';function a116_0x33fb(){const _0x500edb=['command','1729712jshvVO','flags','2CWKwro','3024000lqtruX','version','\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20','order-by','filter','entries','orderby','21oQSEJc','Run\x20`','no-','3659481vSaanf','\x20data\x20filter`.','validation','pagesize','add','page','service','name','115012hIfIhh','Example:\x20','807676qysmqD','833046hyqhRa','15477093siRnur','\x20--help`\x20to\x20see\x20accepted\x20flags.','Unknown\x20flag\x20--','select','page-size','\x20for\x20`','has'];a116_0x33fb=function(){return _0x500edb;};return a116_0x33fb();}import{CLI_BIN_NAME,GLOBAL_FLAGS}from'../constant/cli.js';import{toKebab}from'../framework/preparse.js';function a116_0x5009(_0x3c0faf,_0x5e411f){_0x3c0faf=_0x3c0faf-0xf9;const _0x33fb7e=a116_0x33fb();let _0x5009d6=_0x33fb7e[_0x3c0faf];return _0x5009d6;}const FILTER_BODY_FIELDS=new Set(['where',a116_0x360a1b(0x104),a116_0x360a1b(0x10f),a116_0x360a1b(0x112),'current-page','currentpage',a116_0x360a1b(0xfa),a116_0x360a1b(0x105),a116_0x360a1b(0x119)]);export function assertKnownCommandFlags(_0x56e530,_0x20cb14){const _0x129089=a116_0x360a1b,_0x1dc50d=new Set([_0x129089(0x10d)]);for(const _0x4de551 of GLOBAL_FLAGS){_0x1dc50d[_0x129089(0xf9)](_0x4de551['name']),_0x1dc50d[_0x129089(0xf9)](toKebab(_0x4de551['meowKey']));}for(const _0x268803 of _0x56e530[_0x129089(0x10a)]??[]){_0x1dc50d['add'](_0x268803[_0x129089(0xfc)]);}for(const [_0x5009b7,_0x58058d]of Object[_0x129089(0x111)](_0x20cb14)){const _0x4d6fd4=toKebab(_0x5009b7);if(_0x1dc50d[_0x129089(0x107)](_0x4d6fd4))continue;if(_0x58058d===![]&&_0x1dc50d[_0x129089(0x107)](_0x129089(0x115)+_0x4d6fd4))continue;if(_0x56e530['service']==='data'&&_0x56e530[_0x129089(0x108)]===_0x129089(0x110)&&FILTER_BODY_FIELDS['has'](_0x4d6fd4))throw CliErrors[_0x129089(0x118)]('--'+_0x4d6fd4+'\x20is\x20not\x20a\x20CLI\x20flag\x20for\x20`'+CLI_BIN_NAME+_0x129089(0x117),'Put\x20where,\x20select,\x20orderBy,\x20currentPage,\x20and\x20pageSize\x20inside\x20one\x20--params\x20JSON\x20object.\x20'+(_0x129089(0xfe)+CLI_BIN_NAME+_0x129089(0x10e))+('\x27'+JSON['stringify']({'where':{'status':{'$eq':'active'}},'orderBy':[{'id':'asc'}],'currentPage':0x1,'pageSize':0x14})+'\x27'));throw CliErrors[_0x129089(0x118)](_0x129089(0x103)+_0x4d6fd4+_0x129089(0x106)+CLI_BIN_NAME+'\x20'+_0x56e530[_0x129089(0xfb)]+'\x20'+_0x56e530[_0x129089(0x108)]+'`.',_0x129089(0x114)+CLI_BIN_NAME+'\x20'+_0x56e530[_0x129089(0xfb)]+'\x20'+_0x56e530[_0x129089(0x108)]+_0x129089(0x102));}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a117_0x37f2(){var _0x2e6cde=['6256752xMZxIS','12548508tExdNC','5469873Txsxui','2122610PnROAi','151gXFwOQ','4336264uRBcsp','19718jPasdE','36737304TKulEX'];a117_0x37f2=function(){return _0x2e6cde;};return a117_0x37f2();}(function(_0x2c910f,_0x3f9c6f){var _0x4767de=a117_0x2a85,_0xa99870=_0x2c910f();while(!![]){try{var _0x5004bf=parseInt(_0x4767de(0xf9))/0x1*(parseInt(_0x4767de(0xfb))/0x2)+parseInt(_0x4767de(0xf7))/0x3+parseInt(_0x4767de(0xfa))/0x4+parseInt(_0x4767de(0xf8))/0x5+-parseInt(_0x4767de(0xfd))/0x6+parseInt(_0x4767de(0xf6))/0x7+-parseInt(_0x4767de(0xfc))/0x8;if(_0x5004bf===_0x3f9c6f)break;else _0xa99870['push'](_0xa99870['shift']());}catch(_0x596621){_0xa99870['push'](_0xa99870['shift']());}}}(a117_0x37f2,0xeed65));function a117_0x2a85(_0x12d999,_0x155b65){_0x12d999=_0x12d999-0xf6;var _0x37f28a=a117_0x37f2();var _0x2a8525=_0x37f28a[_0x12d999];return _0x2a8525;}export{extractList,extractPaging}from'@lovrabet/cli-framework';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x40b0c3,_0x3d5591){const _0x5cb8b3=a118_0x1d15,_0x6d11e1=_0x40b0c3();while(!![]){try{const _0x3575f8=-parseInt(_0x5cb8b3(0x173))/0x1+parseInt(_0x5cb8b3(0x178))/0x2+-parseInt(_0x5cb8b3(0x17c))/0x3*(parseInt(_0x5cb8b3(0x175))/0x4)+parseInt(_0x5cb8b3(0x163))/0x5+parseInt(_0x5cb8b3(0x16a))/0x6*(-parseInt(_0x5cb8b3(0x17b))/0x7)+-parseInt(_0x5cb8b3(0x162))/0x8+-parseInt(_0x5cb8b3(0x16f))/0x9*(-parseInt(_0x5cb8b3(0x16b))/0xa);if(_0x3575f8===_0x3d5591)break;else _0x6d11e1['push'](_0x6d11e1['shift']());}catch(_0x4d5bc6){_0x6d11e1['push'](_0x6d11e1['shift']());}}}(a118_0x5d10,0x35602));import{CLI_BIN_NAME}from'../constant/cli.js';export function buildConfirmationLines(_0x4945e3,_0xdf1e01,_0x3a433f){const _0x2b9b27=a118_0x1d15,_0x1ed4fa=buildConfirmationContext(_0x4945e3,_0xdf1e01,_0x3a433f),_0x127cb6=[_0x2b9b27(0x167)+_0x1ed4fa[_0x2b9b27(0x166)]];return _0x1ed4fa[_0x2b9b27(0x17e)]&&_0x127cb6[_0x2b9b27(0x15f)](_0x2b9b27(0x177)+_0x1ed4fa['description']),_0x1ed4fa['affectedRecords']&&_0x127cb6[_0x2b9b27(0x15f)](_0x2b9b27(0x180)+_0x1ed4fa[_0x2b9b27(0x170)]),_0x127cb6[_0x2b9b27(0x15f)]('\x20\x20\x20Continue?\x20[y/N]\x20'),_0x127cb6;}export function reconstructCommandArgv(_0x54315d,_0x271280){const _0x8dc643=a118_0x1d15,_0x5f5c51=[CLI_BIN_NAME,_0x54315d[_0x8dc643(0x179)],_0x54315d[_0x8dc643(0x16e)]];for(const [_0x6c3189,_0x2ca03a]of Object[_0x8dc643(0x15d)](_0x271280)){if(_0x2ca03a===!![])_0x5f5c51[_0x8dc643(0x15f)]('--'+_0x6c3189);else _0x2ca03a!==![]&&_0x2ca03a!==undefined&&_0x2ca03a!==''&&_0x5f5c51['push']('--'+_0x6c3189+'\x20'+JSON[_0x8dc643(0x161)](_0x2ca03a));}return _0x5f5c51[_0x8dc643(0x15f)]('--yes'),_0x5f5c51['join']('\x20');}function buildConfirmationContext(_0x4e5a6c,_0x3fe9af,_0x572fa1){const _0x264d99=a118_0x1d15,_0x4af492=extractAffectedRecords(_0x572fa1);return{'commandLabel':_0x3fe9af,'description':_0x4e5a6c[_0x264d99(0x17e)],'affectedRecords':_0x4af492};}function extractAffectedRecords(_0x5e8321){const _0x56a6e3=a118_0x1d15,_0x4a3fa3=[];if(_0x5e8321[_0x56a6e3(0x16c)])_0x4a3fa3[_0x56a6e3(0x15f)](_0x56a6e3(0x17d)+_0x5e8321[_0x56a6e3(0x16c)]);if(_0x5e8321['id'])_0x4a3fa3[_0x56a6e3(0x15f)](_0x56a6e3(0x169)+_0x5e8321['id']);if(_0x5e8321['schedule-id'])_0x4a3fa3[_0x56a6e3(0x15f)](_0x56a6e3(0x165)+_0x5e8321[_0x56a6e3(0x15e)]);if(_0x5e8321[_0x56a6e3(0x176)])_0x4a3fa3['push'](_0x56a6e3(0x17a)+_0x5e8321['name']);if(_0x5e8321[_0x56a6e3(0x17f)])_0x4a3fa3['push'](_0x56a6e3(0x164)+_0x5e8321[_0x56a6e3(0x17f)]);if(_0x5e8321[_0x56a6e3(0x15c)])_0x4a3fa3[_0x56a6e3(0x15f)]('kind='+_0x5e8321[_0x56a6e3(0x15c)]);if(_0x5e8321[_0x56a6e3(0x160)])_0x4a3fa3['push']('cron='+_0x5e8321['cron']);if(_0x5e8321[_0x56a6e3(0x171)])_0x4a3fa3[_0x56a6e3(0x15f)](_0x56a6e3(0x174)+_0x5e8321[_0x56a6e3(0x171)]);if(_0x5e8321['channel'])_0x4a3fa3[_0x56a6e3(0x15f)](_0x56a6e3(0x168)+_0x5e8321['channel']);if(_0x5e8321[_0x56a6e3(0x16d)])_0x4a3fa3['push']('params='+_0x5e8321['params']);return _0x4a3fa3[_0x56a6e3(0x172)]>0x0?_0x4a3fa3[_0x56a6e3(0x15b)](',\x20'):undefined;}function a118_0x1d15(_0x21157f,_0x28d1f7){_0x21157f=_0x21157f-0x15b;const _0x5d10c2=a118_0x5d10();let _0x1d15e7=_0x5d10c2[_0x21157f];return _0x1d15e7;}function a118_0x5d10(){const _0x5c569a=['cron','stringify','2164352fbtBRe','656055IwADOX','title=','schedule-id=','commandLabel','⚠\x20\x20High-risk\x20operation:\x20','channel=','id=','2057586FCDwis','2050mevmrf','code','params','command','43686lsKKJe','affectedRecords','scheduled-at','length','205888HjedfR','scheduled-at=','34916hrVTfx','name','\x20\x20\x20','574110YTHBZf','service','name=','7cQvBDd','129XCZkFf','code=','description','title','\x20\x20\x20Affected:\x20','join','kind','entries','schedule-id','push'];a118_0x5d10=function(){return _0x5c569a;};return a118_0x5d10();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x191038,_0x34d9a6){const _0x4add1d=a119_0x3ad8,_0x174e67=_0x191038();while(!![]){try{const _0x5be9e6=-parseInt(_0x4add1d(0x78))/0x1+parseInt(_0x4add1d(0x76))/0x2+-parseInt(_0x4add1d(0x72))/0x3*(-parseInt(_0x4add1d(0x74))/0x4)+parseInt(_0x4add1d(0x73))/0x5+-parseInt(_0x4add1d(0x79))/0x6+-parseInt(_0x4add1d(0x7b))/0x7+parseInt(_0x4add1d(0x7d))/0x8*(parseInt(_0x4add1d(0x71))/0x9);if(_0x5be9e6===_0x34d9a6)break;else _0x174e67['push'](_0x174e67['shift']());}catch(_0x544827){_0x174e67['push'](_0x174e67['shift']());}}}(a119_0x4742,0x642ce));function a119_0x3ad8(_0x2796bf,_0x5b809f){_0x2796bf=_0x2796bf-0x6d;const _0x4742da=a119_0x4742();let _0x3ad866=_0x4742da[_0x2796bf];return _0x3ad866;}import{LovrabetError}from'@lovrabet/sdk';import{CliErrors}from'../errors.js';import{createRateLimitError,readRetryAfter,readRetryAfterSeconds}from'../framework/rate-limit.js';export function mapUserFacingExecuteError(_0x5b4e3b){const _0x54619c=a119_0x3ad8;if(_0x5b4e3b instanceof LovrabetError){const _0x5f3aa5=userFacingLovrabetMessage(_0x5b4e3b),_0x39e0cb=_0x5b4e3b,_0x13df74=createRateLimitError({'status':_0x39e0cb[_0x54619c(0x7c)],'errorCode':_0x39e0cb[_0x54619c(0x70)],'message':_0x5f3aa5,'retryAfter':readRetryAfter(_0x39e0cb[_0x54619c(0x6e)]?.['headers'])??readRetryAfterSeconds(_0x39e0cb[_0x54619c(0x6e)])});return _0x13df74??CliErrors[_0x54619c(0x77)](_0x5f3aa5);}return _0x5b4e3b;}function userFacingLovrabetMessage(_0x377dc3){const _0x3416fd=a119_0x3ad8,_0x929cc6=_0x377dc3[_0x3416fd(0x75)];if(_0x929cc6!==undefined&&_0x929cc6!==null){if(typeof _0x929cc6==='string'&&_0x929cc6[_0x3416fd(0x6f)]())return _0x929cc6[_0x3416fd(0x6f)]();try{return JSON[_0x3416fd(0x7a)](_0x929cc6);}catch{}}return _0x377dc3[_0x3416fd(0x6d)];}function a119_0x4742(){const _0x44ca49=['description','124348KCssjS','validation','810559dFGdKk','2244SzhpQG','stringify','1469615bJPFKP','status','4178904snbhWS','message','response','trim','code','9NwwDsp','348027jNnROz','1333070CoWvbS','20WCnJzh'];a119_0x4742=function(){return _0x44ca49;};return a119_0x4742();}
|
package/lib/framework/runner.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x9f68b1,_0x11eb16){const _0x4ed917=a120_0x3782,_0x14eb8a=_0x9f68b1();while(!![]){try{const _0x5481b5=parseInt(_0x4ed917(0x110))/0x1+-parseInt(_0x4ed917(0x107))/0x2+-parseInt(_0x4ed917(0x10e))/0x3*(-parseInt(_0x4ed917(0x12a))/0x4)+parseInt(_0x4ed917(0xf0))/0x5*(parseInt(_0x4ed917(0x129))/0x6)+-parseInt(_0x4ed917(0x11c))/0x7+-parseInt(_0x4ed917(0x112))/0x8*(parseInt(_0x4ed917(0x121))/0x9)+parseInt(_0x4ed917(0xfc))/0xa*(-parseInt(_0x4ed917(0xed))/0xb);if(_0x5481b5===_0x11eb16)break;else _0x14eb8a['push'](_0x14eb8a['shift']());}catch(_0x2dff53){_0x14eb8a['push'](_0x14eb8a['shift']());}}}(a120_0x3c20,0xcfebf));import{runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvName}from'../constant/product.js';import{isNonInteractiveMode,readAppCodeFromConfig}from'../context.js';import{AUTH_MODE}from'../constant/auth-mode.js';import{getApiDomain,getRuntimeDomain}from'../constant/domain.js';import{buildConfirmationLines,reconstructCommandArgv}from'../framework/runner-confirmation.js';import{mapUserFacingExecuteError}from'../framework/runner-error.js';import{assertKnownCommandFlags}from'../framework/raw-flags.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';import{assertCliVersionSupported,checkCliVersion}from'../utils/cli-version-check.js';import{findAppByCode,findAppByName,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../commands/app/eligibility.js';export function resolveAuthMode(_0xe4a8cc){const _0x499ba0=a120_0x3782;return void _0xe4a8cc,AUTH_MODE[_0x499ba0(0x127)];}let sdkClientInitialized=![];export function createPipelineEnv(_0x52bcde,_0x4a9529){const _0x4116bf=a120_0x3782,_0x902ed5=typeof _0x4a9529['app']==='string'&&_0x4a9529[_0x4116bf(0x12b)][_0x4116bf(0xf5)]();return{'rawFlags':_0x4a9529,'appCode':_0x52bcde['appCode']||productEnv(_0x4116bf(0xe3))||(_0x902ed5?undefined:readAppCodeFromConfig()),'appCodeSource':_0x52bcde['appCodeSource'],'apiDomain':getApiDomain(),'runtimeDomain':getRuntimeDomain(),'isNonInteractive':isNonInteractiveMode(_0x4a9529),'defaultFormat':_0x52bcde['format'],'defaultPageSize':_0x52bcde[_0x4116bf(0x126)],'defaultVerbose':_0x52bcde[_0x4116bf(0xfa)],'riskLevel':_0x52bcde[_0x4116bf(0x11d)],'nativeToolAvailable':_0x52bcde['nativeToolAvailable'],'accessKey':_0x52bcde[_0x4116bf(0x11b)],'env':_0x52bcde['env'],'mergedCli':{'defaultApp':_0x52bcde['defaultApp'],'currentApp':_0x52bcde[_0x4116bf(0xf7)],'appCode':_0x52bcde['appCode']}};}export function createLovrabetRunnerAdapter(_0x3bf3ba={}){const _0x4d5fb0=a120_0x3782,_0x1da532={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0x4d5fb0(0x123)](_0x4ef5f9=>PIPELINE_FLAG_NAMES[_0x4d5fb0(0xef)](_0x4ef5f9[_0x4d5fb0(0x10f)]))[_0x4d5fb0(0xe7)](({name:_0x58cf8f,type:_0x9cf91f,description:_0x5c1252})=>({'name':_0x58cf8f,'type':_0x9cf91f,'description':_0x5c1252})),'formatOutput':_0x3bf3ba[_0x4d5fb0(0x109)]??formatOutput,'getCommandLabel'(_0x3dd95b){const _0x3cb1e4=_0x4d5fb0;return CLI_BIN_NAME+'\x20'+_0x3dd95b[_0x3cb1e4(0x108)]+'\x20'+_0x3dd95b[_0x3cb1e4(0xfb)];},'riskPolicy':{'onViolation'(_0x50d727,{def:_0x397fb0,env:_0x54e89a}){const _0x23079a=_0x4d5fb0;if(shouldRouteWriteToNativeTool(_0x397fb0,_0x54e89a))return;console[_0x23079a(0xfe)](_0x50d727);},'createError'(_0x10ecfb,{def:_0x3536aa,env:_0x5c911f}){const _0x6fd30a=_0x4d5fb0;if(shouldRouteWriteToNativeTool(_0x3536aa,_0x5c911f))return CliErrors['nativeToolRequired'](CLI_BIN_NAME+'\x20'+_0x3536aa[_0x6fd30a(0x108)]+'\x20'+_0x3536aa[_0x6fd30a(0xfb)]);return CliErrors[_0x6fd30a(0x10d)](_0x10ecfb);}},async 'prepare'(_0x5956aa,_0x27a5f5){const _0x5b2073=_0x4d5fb0,_0x54876f=resolveAuthMode(_0x27a5f5);if(_0x5956aa[_0x5b2073(0x10c)]!==![]){if(!_0x27a5f5[_0x5b2073(0x11b)])throw CliErrors[_0x5b2073(0x103)]('Set\x20accessKey\x20in\x20'+PRODUCT_CONFIG[_0x5b2073(0x125)]+'\x20or\x20pass\x20'+productEnvName(_0x5b2073(0xe4))+'.');const {setActiveAK:_0x4335c8}=await import(_0x5b2073(0xfd));_0x4335c8(_0x27a5f5[_0x5b2073(0x11b)]);}let _0x193fdd='';if(_0x5956aa[_0x5b2073(0x124)]!==![]){_0x193fdd=_0x27a5f5['appCode']??'',_0x193fdd=await resolveExplicitAppName(_0x5956aa,_0x27a5f5,_0x193fdd);if(!_0x193fdd){await assertSelectedAppNameIsRuntimeAccessible(_0x5956aa,_0x27a5f5);throw CliErrors[_0x5b2073(0x119)]('Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20'+PRODUCT_CONFIG[_0x5b2073(0x125)]+'.');}await assertAppCodeIsRuntimeAccessible(_0x5956aa,_0x27a5f5,_0x193fdd);}if(_0x193fdd){const {initSdkClient:_0x1c3bfe}=await import(_0x5b2073(0xee));_0x1c3bfe({'appCode':_0x193fdd,'env':_0x27a5f5['env']??_0x5b2073(0xe5),'runtimeDomain':_0x27a5f5[_0x5b2073(0x104)],'accessKey':_0x27a5f5[_0x5b2073(0x11b)],'authMode':_0x54876f}),sdkClientInitialized=!![];}return{'defaults':{'booleans':{'verbose':_0x27a5f5[_0x5b2073(0x101)]},'numbers':{'pagesize':_0x27a5f5[_0x5b2073(0xf1)]}},'extras':{'appCode':_0x193fdd,'cookie':'','apiDomain':_0x27a5f5[_0x5b2073(0x11a)],'apiDir':'','accessKey':_0x27a5f5[_0x5b2073(0x11b)],'envName':_0x27a5f5[_0x5b2073(0x10a)],'mergedCli':_0x27a5f5[_0x5b2073(0x100)]}};},'confirmHighRisk':_0x3bf3ba[_0x4d5fb0(0xea)]??(async({def:_0xa7c52f,env:_0x5b3e67,flags:_0x2b27d5,commandLabel:_0x1a1576})=>{const _0x3ac4e3=_0x4d5fb0;if(_0x5b3e67['isNonInteractive']){const _0x11db39=reconstructCommandArgv(_0xa7c52f,_0x2b27d5);throw CliErrors[_0x3ac4e3(0x115)]('High-risk\x20operation\x20`'+_0x1a1576+_0x3ac4e3(0xeb)+(_0x3ac4e3(0x118)+_0x11db39));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0xa7c52f,_0x1a1576,_0x2b27d5),'createCancelledError':_0x278107=>CliErrors[_0x3ac4e3(0x10d)](_0x278107)});}),'mapDryRunError'(_0x4dfc41){return mapUserFacingExecuteError(_0x4dfc41);},'mapExecuteError'(_0x561d57){return mapUserFacingExecuteError(_0x561d57);},async 'finalize'(){await finalizeLovrabetRuntimeState();}};return _0x1da532;}function shouldRouteWriteToNativeTool(_0x232d5a,_0x145a2d){const _0x1db6da=a120_0x3782;return _0x145a2d[_0x1db6da(0x102)]===!![]&&(_0x232d5a['risk']===_0x1db6da(0xf9)||_0x232d5a[_0x1db6da(0x113)]==='high-risk-write');}const terminalRunnerAdapter=createLovrabetRunnerAdapter();function a120_0x3c20(){const _0x2913e6=['rawFlags','1078544HutgUH','service','formatOutput','env','items','requiresAuth','cancelled','9xypJyv','name','931572IPlwrw','object','1536WEZqPr','risk','appcode','validation','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.','appcode\x20\x22','\x20\x20To\x20proceed:\x20','configMissing','apiDomain','accessKey','6223070kfopWz','riskLevel','update','doctor','local-alias','14112vGfBQq','.appcode\x20to\x20','filter','requiresAppCode','newConfigFileName','pageSize','ClientAk','cli-skill','1700910rzlyql','1499716tKgEZK','app','APPCODE','ACCESS_KEY','production','schema','map','resolve','../commands/app/remote-source.js','confirmHighRisk','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a','pretty','15917rWDIkA','../core/sdk-client.js','has','25YyOLbK','defaultPageSize','_notice','string','appCode','trim','defaultApp','currentApp','Run\x20`','write','verbose','command','6170HkCLYe','../core/api-client.js','error','install','mergedCli','defaultVerbose','nativeToolAvailable','authRequired','runtimeDomain','nonInteractive'];a120_0x3c20=function(){return _0x2913e6;};return a120_0x3c20();}export async function finalizeLovrabetRuntimeState(){try{if(sdkClientInitialized){const {clearSdkClient:_0x5daec1}=await import('../core/sdk-client.js');_0x5daec1();}}finally{sdkClientInitialized=![];const {clearActiveAK:_0xfe2ea4}=await import('../core/api-client.js');_0xfe2ea4();}}async function resolveExplicitAppName(_0x2e9f8e,_0x3456c3,_0xd1a2f8){const _0x509474=a120_0x3782;if(_0x2e9f8e[_0x509474(0x124)]===![])return _0xd1a2f8;const _0x426236=typeof _0x3456c3[_0x509474(0x106)][_0x509474(0x12b)]===_0x509474(0xf3)?_0x3456c3[_0x509474(0x106)][_0x509474(0x12b)][_0x509474(0xf5)]():'';if(!_0x426236)return _0xd1a2f8;const _0x189104=typeof _0x3456c3[_0x509474(0x106)][_0x509474(0x114)]===_0x509474(0xf3)&&_0x3456c3[_0x509474(0x106)][_0x509474(0x114)][_0x509474(0xf5)]()||productEnv(_0x509474(0xe3));if(_0x189104||_0x3456c3['appCodeSource']===_0x509474(0x120))return _0xd1a2f8;const {getRemoteAppList:_0x3c9b9b}=await import(_0x509474(0xe9)),_0x12fbba=await _0x3c9b9b({'env':_0x3456c3[_0x509474(0x10a)]??_0x509474(0xe5),'accessKey':_0x3456c3[_0x509474(0x11b)]}),_0x56c24f=findAppByName(_0x12fbba['items'],_0x426236);if(_0x56c24f&&!isRuntimeAccessibleApp(_0x56c24f))throw runtimeInaccessibleAppError(_0x56c24f,'\x22'+_0x426236+'\x22');const _0x194133=_0x56c24f?.[_0x509474(0xf4)]?.[_0x509474(0xf5)]();if(_0x194133)return _0x194133;throw CliErrors[_0x509474(0x115)]('Unknown\x20app:\x20'+_0x426236,_0x509474(0xf8)+CLI_BIN_NAME+_0x509474(0x116)+_0x426236+_0x509474(0x122)+PRODUCT_CONFIG['newConfigFileName']+'.');}function a120_0x3782(_0x101485,_0x4641fc){_0x101485=_0x101485-0xe3;const _0x3c2069=a120_0x3c20();let _0x378235=_0x3c2069[_0x101485];return _0x378235;}async function assertSelectedAppNameIsRuntimeAccessible(_0x577caf,_0x298076){const _0x2d5742=a120_0x3782;if(_0x577caf['requiresAppCode']===![]||!_0x298076[_0x2d5742(0x11b)])return;const _0x1c7ce3=(typeof _0x298076[_0x2d5742(0x106)][_0x2d5742(0x12b)]===_0x2d5742(0xf3)&&_0x298076[_0x2d5742(0x106)][_0x2d5742(0x12b)][_0x2d5742(0xf5)]()?_0x298076[_0x2d5742(0x106)][_0x2d5742(0x12b)]:_0x298076['mergedCli']?.[_0x2d5742(0xf7)]??_0x298076['mergedCli']?.[_0x2d5742(0xf6)])?.[_0x2d5742(0xf5)]();if(!_0x1c7ce3)return;const {getRemoteAppList:_0x2fc883}=await import(_0x2d5742(0xe9)),_0x4848a4=await _0x2fc883({'env':_0x298076[_0x2d5742(0x10a)]??_0x2d5742(0xe5),'accessKey':_0x298076[_0x2d5742(0x11b)]}),_0x463738=findAppByName(_0x4848a4['items'],_0x1c7ce3);if(_0x463738&&!isRuntimeAccessibleApp(_0x463738))throw runtimeInaccessibleAppError(_0x463738,'\x22'+_0x1c7ce3+'\x22');}async function assertAppCodeIsRuntimeAccessible(_0x5a7545,_0x3612c7,_0x5ad3f3){const _0x3d7016=a120_0x3782;if(_0x5a7545[_0x3d7016(0x124)]===![]||!_0x3612c7['accessKey'])return;const {getRemoteAppList:_0x4ef09b}=await import(_0x3d7016(0xe9)),_0x2a14b3=await _0x4ef09b({'env':_0x3612c7[_0x3d7016(0x10a)]??_0x3d7016(0xe5),'accessKey':_0x3612c7[_0x3d7016(0x11b)]}),_0x1ac1c9=findAppByCode(_0x2a14b3[_0x3d7016(0x10b)],_0x5ad3f3);if(_0x1ac1c9&&!isRuntimeAccessibleApp(_0x1ac1c9))throw runtimeInaccessibleAppError(_0x1ac1c9,_0x3d7016(0x117)+_0x5ad3f3+'\x22');}export async function runCommand(_0x33726f,_0x5eb67a,_0x5b772a=terminalRunnerAdapter){const _0x1626bc=a120_0x3782;assertKnownCommandFlags(_0x33726f,_0x5eb67a[_0x1626bc(0x106)]),await runCommandWithAdapter(shouldApplyVersionPolicy(_0x33726f)?withVersionPolicy(_0x33726f):_0x33726f,_0x5eb67a,_0x5b772a);}function shouldApplyVersionPolicy(_0x54f4fe){const _0x4d097a=a120_0x3782;if([_0x4d097a(0x11e),_0x4d097a(0xe6),_0x4d097a(0x11f)]['includes'](_0x54f4fe[_0x4d097a(0x108)]))return![];return!(_0x54f4fe[_0x4d097a(0x108)]===_0x4d097a(0x128)&&_0x54f4fe[_0x4d097a(0xfb)]===_0x4d097a(0xff));}function withVersionPolicy(_0x3751a1){return{..._0x3751a1,async 'execute'(_0x57a0f7){const _0x563173=a120_0x3782,_0x450151=await checkCliVersion();assertCliVersionSupported(_0x450151);const _0x3e1986=shouldResolveUpdateNotice(_0x57a0f7)?resolveLatestUpdateNotice(_0x450151)['catch'](()=>null):Promise[_0x563173(0xe8)](null),_0xdb72a0=await _0x3751a1['execute'](_0x57a0f7);return attachUpdateNotice(_0xdb72a0,await _0x3e1986);}};}function shouldResolveUpdateNotice(_0x5cc8a2){const _0x56fa42=a120_0x3782;return _0x5cc8a2['format']===_0x56fa42(0xec)&&!_0x5cc8a2[_0x56fa42(0x105)];}function attachUpdateNotice(_0x354274,_0x2213cc){const _0x2ff3b1=a120_0x3782;if(!_0x2213cc||!_0x354274||typeof _0x354274!==_0x2ff3b1(0x111))return _0x354274;const _0x4b5c08=_0x354274,_0x4c9c37=typeof _0x4b5c08[_0x2ff3b1(0xf2)]==='object'&&_0x4b5c08[_0x2ff3b1(0xf2)]!==null?_0x4b5c08['_notice']:{};return{..._0x4b5c08,'_notice':{..._0x4c9c37,'update':_0x2213cc}};}
|
|
1
|
+
function a120_0x9fe9(_0x2d7b31,_0x350b9c){_0x2d7b31=_0x2d7b31-0x1f1;const _0x212451=a120_0x2124();let _0x9fe9a1=_0x212451[_0x2d7b31];return _0x9fe9a1;}(function(_0x5bf6f1,_0x387485){const _0x441d19=a120_0x9fe9,_0x2b8dce=_0x5bf6f1();while(!![]){try{const _0x17abe0=parseInt(_0x441d19(0x208))/0x1*(-parseInt(_0x441d19(0x227))/0x2)+-parseInt(_0x441d19(0x21c))/0x3+-parseInt(_0x441d19(0x20a))/0x4*(parseInt(_0x441d19(0x1ff))/0x5)+-parseInt(_0x441d19(0x209))/0x6*(-parseInt(_0x441d19(0x226))/0x7)+parseInt(_0x441d19(0x22a))/0x8+parseInt(_0x441d19(0x22d))/0x9*(parseInt(_0x441d19(0x223))/0xa)+parseInt(_0x441d19(0x203))/0xb*(parseInt(_0x441d19(0x207))/0xc);if(_0x17abe0===_0x387485)break;else _0x2b8dce['push'](_0x2b8dce['shift']());}catch(_0x50eaee){_0x2b8dce['push'](_0x2b8dce['shift']());}}}(a120_0x2124,0xa8de2));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';function a120_0x2124(){const _0x542c6f=['`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a','3815289LbLvUM','currentApp','update','requiresAppCode','cancelled','install','schema','14990XZHWWw','env','format','16793kbzaHR','2HVbHHv','_notice','Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20','1131144tBhAyZ','High-risk\x20operation\x20`','apiDomain','927bWpnwV','nonInteractive','ClientAk','items','map','object','has','defaultVerbose','Unknown\x20app:\x20','command','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.','mergedCli','appcode\x20\x22','requiresAuth','validation','name','nativeToolRequired','configMissing','filter','formatOutput','error','Set\x20accessKey\x20in\x20','appcode','app','string','production','../commands/app/remote-source.js','authRequired','local-alias','3855Ikfnlb','rawFlags','riskLevel','nativeToolAvailable','1127302KCXmgF','risk','.appcode\x20to\x20','appCode','228QtwEnt','10081cgFcje','1536CiJRmD','4584xcJfYt','service','pretty','write','\x20or\x20pass\x20','runtimeDomain','Run\x20`','newConfigFileName','../core/api-client.js','APPCODE','accessKey','high-risk-write','appCodeSource','defaultApp','catch','pageSize','trim'];a120_0x2124=function(){return _0x542c6f;};return a120_0x2124();}export function resolveAuthMode(_0x56f888){const _0x548695=a120_0x9fe9;return void _0x56f888,AUTH_MODE[_0x548695(0x22f)];}let sdkClientInitialized=![];export function createPipelineEnv(_0x2e899b,_0x71dbf2){const _0x25e02f=a120_0x9fe9,_0x5398f9=typeof _0x71dbf2[_0x25e02f(0x1f9)]==='string'&&_0x71dbf2['app'][_0x25e02f(0x21a)]();return{'rawFlags':_0x71dbf2,'appCode':_0x2e899b[_0x25e02f(0x206)]||productEnv(_0x25e02f(0x213))||(_0x5398f9?undefined:readAppCodeFromConfig()),'appCodeSource':_0x2e899b[_0x25e02f(0x216)],'apiDomain':getApiDomain(),'runtimeDomain':getRuntimeDomain(),'isNonInteractive':isNonInteractiveMode(_0x71dbf2),'defaultFormat':_0x2e899b[_0x25e02f(0x225)],'defaultPageSize':_0x2e899b[_0x25e02f(0x219)],'defaultVerbose':_0x2e899b['verbose'],'riskLevel':_0x2e899b[_0x25e02f(0x201)],'nativeToolAvailable':_0x2e899b[_0x25e02f(0x202)],'accessKey':_0x2e899b[_0x25e02f(0x214)],'env':_0x2e899b[_0x25e02f(0x224)],'mergedCli':{'defaultApp':_0x2e899b[_0x25e02f(0x217)],'currentApp':_0x2e899b['currentApp'],'appCode':_0x2e899b['appCode']}};}export function createLovrabetRunnerAdapter(_0x135eda={}){const _0x5bc992=a120_0x9fe9,_0x1f3c32={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS[_0x5bc992(0x1f4)](_0x4009f7=>PIPELINE_FLAG_NAMES[_0x5bc992(0x233)](_0x4009f7[_0x5bc992(0x1f1)]))[_0x5bc992(0x231)](({name:_0xd3c6d5,type:_0x40d4ee,description:_0x2b61d5})=>({'name':_0xd3c6d5,'type':_0x40d4ee,'description':_0x2b61d5})),'formatOutput':_0x135eda[_0x5bc992(0x1f5)]??formatOutput,'getCommandLabel'(_0x350c99){return CLI_BIN_NAME+'\x20'+_0x350c99['service']+'\x20'+_0x350c99['command'];},'riskPolicy':{'onViolation'(_0x5f3980,{def:_0x27585d,env:_0x168bdd}){const _0x342fee=_0x5bc992;if(shouldRouteWriteToNativeTool(_0x27585d,_0x168bdd))return;console[_0x342fee(0x1f6)](_0x5f3980);},'createError'(_0x4136fa,{def:_0x4774b3,env:_0x5d9dc5}){const _0x4e7ca5=_0x5bc992;if(shouldRouteWriteToNativeTool(_0x4774b3,_0x5d9dc5))return CliErrors[_0x4e7ca5(0x1f2)](CLI_BIN_NAME+'\x20'+_0x4774b3['service']+'\x20'+_0x4774b3[_0x4e7ca5(0x236)]);return CliErrors['cancelled'](_0x4136fa);}},async 'prepare'(_0x4f2e5e,_0x13e934){const _0x8aeb41=_0x5bc992,_0x563e88=resolveAuthMode(_0x13e934);if(_0x4f2e5e[_0x8aeb41(0x23a)]!==![]){if(!_0x13e934[_0x8aeb41(0x214)])throw CliErrors[_0x8aeb41(0x1fd)](_0x8aeb41(0x1f7)+PRODUCT_CONFIG[_0x8aeb41(0x211)]+_0x8aeb41(0x20e)+productEnvName('ACCESS_KEY')+'.');const {setActiveAK:_0x47c00c}=await import(_0x8aeb41(0x212));_0x47c00c(_0x13e934['accessKey']);}let _0x4eb691='';if(_0x4f2e5e['requiresAppCode']!==![]){_0x4eb691=_0x13e934[_0x8aeb41(0x206)]??'',_0x4eb691=await resolveExplicitAppName(_0x4f2e5e,_0x13e934,_0x4eb691);if(!_0x4eb691){await assertSelectedAppNameIsRuntimeAccessible(_0x4f2e5e,_0x13e934);throw CliErrors[_0x8aeb41(0x1f3)](_0x8aeb41(0x229)+PRODUCT_CONFIG['newConfigFileName']+'.');}await assertAppCodeIsRuntimeAccessible(_0x4f2e5e,_0x13e934,_0x4eb691);}if(_0x4eb691){const {initSdkClient:_0x5e902d}=await import('../core/sdk-client.js');_0x5e902d({'appCode':_0x4eb691,'env':_0x13e934[_0x8aeb41(0x224)]??_0x8aeb41(0x1fb),'runtimeDomain':_0x13e934[_0x8aeb41(0x20f)],'accessKey':_0x13e934[_0x8aeb41(0x214)],'authMode':_0x563e88}),sdkClientInitialized=!![];}return{'defaults':{'booleans':{'verbose':_0x13e934[_0x8aeb41(0x234)]},'numbers':{'pagesize':_0x13e934['defaultPageSize']}},'extras':{'appCode':_0x4eb691,'cookie':'','apiDomain':_0x13e934[_0x8aeb41(0x22c)],'apiDir':'','accessKey':_0x13e934[_0x8aeb41(0x214)],'envName':_0x13e934[_0x8aeb41(0x224)],'mergedCli':_0x13e934[_0x8aeb41(0x238)]}};},'confirmHighRisk':_0x135eda['confirmHighRisk']??(async({def:_0x390b1a,env:_0x591c9e,flags:_0x183f89,commandLabel:_0x393dba})=>{const _0x191dd5=_0x5bc992;if(_0x591c9e['isNonInteractive']){const _0x220def=reconstructCommandArgv(_0x390b1a,_0x183f89);throw CliErrors[_0x191dd5(0x23b)](_0x191dd5(0x22b)+_0x393dba+_0x191dd5(0x21b)+('\x20\x20To\x20proceed:\x20'+_0x220def));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0x390b1a,_0x393dba,_0x183f89),'createCancelledError':_0x482794=>CliErrors[_0x191dd5(0x220)](_0x482794)});}),'mapDryRunError'(_0xd924f0){return mapUserFacingExecuteError(_0xd924f0);},'mapExecuteError'(_0xdd1840){return mapUserFacingExecuteError(_0xdd1840);},async 'finalize'(){await finalizeLovrabetRuntimeState();}};return _0x1f3c32;}function shouldRouteWriteToNativeTool(_0x59ee17,_0x4e4dc6){const _0x560676=a120_0x9fe9;return _0x4e4dc6[_0x560676(0x202)]===!![]&&(_0x59ee17[_0x560676(0x204)]===_0x560676(0x20d)||_0x59ee17[_0x560676(0x204)]===_0x560676(0x215));}const terminalRunnerAdapter=createLovrabetRunnerAdapter();export async function finalizeLovrabetRuntimeState(){const _0x2eb5d3=a120_0x9fe9;try{if(sdkClientInitialized){const {clearSdkClient:_0x34d25b}=await import('../core/sdk-client.js');_0x34d25b();}}finally{sdkClientInitialized=![];const {clearActiveAK:_0x59b635}=await import(_0x2eb5d3(0x212));_0x59b635();}}async function resolveExplicitAppName(_0x4538a1,_0xc8b3aa,_0x2146ae){const _0x3121fe=a120_0x9fe9;if(_0x4538a1[_0x3121fe(0x21f)]===![])return _0x2146ae;const _0x19390f=typeof _0xc8b3aa[_0x3121fe(0x200)][_0x3121fe(0x1f9)]===_0x3121fe(0x1fa)?_0xc8b3aa['rawFlags'][_0x3121fe(0x1f9)][_0x3121fe(0x21a)]():'';if(!_0x19390f)return _0x2146ae;const _0x517e00=typeof _0xc8b3aa[_0x3121fe(0x200)][_0x3121fe(0x1f8)]===_0x3121fe(0x1fa)&&_0xc8b3aa[_0x3121fe(0x200)][_0x3121fe(0x1f8)][_0x3121fe(0x21a)]()||productEnv(_0x3121fe(0x213));if(_0x517e00||_0xc8b3aa[_0x3121fe(0x216)]===_0x3121fe(0x1fe))return _0x2146ae;const {getRemoteAppList:_0x3f59bb}=await import(_0x3121fe(0x1fc)),_0x3d794c=await _0x3f59bb({'env':_0xc8b3aa[_0x3121fe(0x224)]??_0x3121fe(0x1fb),'accessKey':_0xc8b3aa[_0x3121fe(0x214)]}),_0x5854bf=findAppByName(_0x3d794c[_0x3121fe(0x230)],_0x19390f);if(_0x5854bf&&!isRuntimeAccessibleApp(_0x5854bf))throw runtimeInaccessibleAppError(_0x5854bf,'\x22'+_0x19390f+'\x22');const _0xc501ea=_0x5854bf?.['appCode']?.[_0x3121fe(0x21a)]();if(_0xc501ea)return _0xc501ea;throw CliErrors[_0x3121fe(0x23b)](_0x3121fe(0x235)+_0x19390f,_0x3121fe(0x210)+CLI_BIN_NAME+_0x3121fe(0x237)+_0x19390f+_0x3121fe(0x205)+PRODUCT_CONFIG[_0x3121fe(0x211)]+'.');}async function assertSelectedAppNameIsRuntimeAccessible(_0x421d07,_0x2d62d8){const _0xa98032=a120_0x9fe9;if(_0x421d07[_0xa98032(0x21f)]===![]||!_0x2d62d8[_0xa98032(0x214)])return;const _0x448ada=(typeof _0x2d62d8[_0xa98032(0x200)]['app']===_0xa98032(0x1fa)&&_0x2d62d8['rawFlags'][_0xa98032(0x1f9)]['trim']()?_0x2d62d8[_0xa98032(0x200)][_0xa98032(0x1f9)]:_0x2d62d8[_0xa98032(0x238)]?.[_0xa98032(0x21d)]??_0x2d62d8[_0xa98032(0x238)]?.[_0xa98032(0x217)])?.['trim']();if(!_0x448ada)return;const {getRemoteAppList:_0x1d135d}=await import(_0xa98032(0x1fc)),_0xc7e9a2=await _0x1d135d({'env':_0x2d62d8[_0xa98032(0x224)]??_0xa98032(0x1fb),'accessKey':_0x2d62d8[_0xa98032(0x214)]}),_0x368843=findAppByName(_0xc7e9a2[_0xa98032(0x230)],_0x448ada);if(_0x368843&&!isRuntimeAccessibleApp(_0x368843))throw runtimeInaccessibleAppError(_0x368843,'\x22'+_0x448ada+'\x22');}async function assertAppCodeIsRuntimeAccessible(_0x1bd6c4,_0x41702d,_0x1089a5){const _0x3a9caf=a120_0x9fe9;if(_0x1bd6c4[_0x3a9caf(0x21f)]===![]||!_0x41702d[_0x3a9caf(0x214)])return;const {getRemoteAppList:_0x4ff9f3}=await import('../commands/app/remote-source.js'),_0x55637f=await _0x4ff9f3({'env':_0x41702d[_0x3a9caf(0x224)]??_0x3a9caf(0x1fb),'accessKey':_0x41702d[_0x3a9caf(0x214)]}),_0xc4ba51=findAppByCode(_0x55637f[_0x3a9caf(0x230)],_0x1089a5);if(_0xc4ba51&&!isRuntimeAccessibleApp(_0xc4ba51))throw runtimeInaccessibleAppError(_0xc4ba51,_0x3a9caf(0x239)+_0x1089a5+'\x22');}export async function runCommand(_0x412e67,_0xfb4e3f,_0x1d76e5=terminalRunnerAdapter){const _0xee78a5=a120_0x9fe9;assertKnownCommandFlags(_0x412e67,_0xfb4e3f[_0xee78a5(0x200)]),await runCommandWithAdapter(shouldApplyVersionPolicy(_0x412e67)?withVersionPolicy(_0x412e67):_0x412e67,_0xfb4e3f,_0x1d76e5);}function shouldApplyVersionPolicy(_0x2a08d0){const _0x583871=a120_0x9fe9;if([_0x583871(0x21e),_0x583871(0x222),'doctor']['includes'](_0x2a08d0['service']))return![];return!(_0x2a08d0[_0x583871(0x20b)]==='cli-skill'&&_0x2a08d0[_0x583871(0x236)]===_0x583871(0x221));}function withVersionPolicy(_0x5695e6){return{..._0x5695e6,async 'execute'(_0x574ef4){const _0x621005=a120_0x9fe9,_0x3645f5=await checkCliVersion();assertCliVersionSupported(_0x3645f5);const _0x78f22e=shouldResolveUpdateNotice(_0x574ef4)?resolveLatestUpdateNotice(_0x3645f5)[_0x621005(0x218)](()=>null):Promise['resolve'](null),_0x73c67c=await _0x5695e6['execute'](_0x574ef4);return attachUpdateNotice(_0x73c67c,await _0x78f22e);}};}function shouldResolveUpdateNotice(_0x1153ff){const _0x50811f=a120_0x9fe9;return _0x1153ff[_0x50811f(0x225)]===_0x50811f(0x20c)&&!_0x1153ff[_0x50811f(0x22e)];}function attachUpdateNotice(_0x245cd9,_0xf970ce){const _0x184633=a120_0x9fe9;if(!_0xf970ce||!_0x245cd9||typeof _0x245cd9!==_0x184633(0x232))return _0x245cd9;const _0xc2f99b=_0x245cd9,_0x15b4fb=typeof _0xc2f99b[_0x184633(0x228)]==='object'&&_0xc2f99b[_0x184633(0x228)]!==null?_0xc2f99b['_notice']:{};return{..._0xc2f99b,'_notice':{..._0x15b4fb,'update':_0xf970ce}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a121_0x2d63(_0x399301,_0x562e65){_0x399301=_0x399301-0x1d7;const _0x19df43=a121_0x19df();let _0x2d631d=_0x19df43[_0x399301];return _0x2d631d;}(function(_0x1bbaf1,_0x2dcb0b){const _0x3aad14=a121_0x2d63,_0x552d9b=_0x1bbaf1();while(!![]){try{const _0x564210=parseInt(_0x3aad14(0x1e0))/0x1*(-parseInt(_0x3aad14(0x1e4))/0x2)+-parseInt(_0x3aad14(0x1e5))/0x3+parseInt(_0x3aad14(0x1dd))/0x4+-parseInt(_0x3aad14(0x1e7))/0x5+parseInt(_0x3aad14(0x1d9))/0x6*(parseInt(_0x3aad14(0x1da))/0x7)+parseInt(_0x3aad14(0x1e8))/0x8*(parseInt(_0x3aad14(0x1e3))/0x9)+parseInt(_0x3aad14(0x1e2))/0xa;if(_0x564210===_0x2dcb0b)break;else _0x552d9b['push'](_0x552d9b['shift']());}catch(_0x41e8b4){_0x552d9b['push'](_0x552d9b['shift']());}}}(a121_0x19df,0x7f0d2));import{buildSchemaPayload as a121_0x5a5856}from'@lovrabet/cli-framework';import{buildAllFlags}from'../framework/build-all-flags.js';function a121_0x19df(){const _0x156322=['19466DCHaQw','2262843ynctSZ','auth','4815070oiFYgj','8eUImCI','requiresAuth','map','6lKEGSx','6783917NbEsAD','filter','required','489088KwAPSI','has','services','103OpOnsl','none','20955320yfXYgc','479349pCJjLF'];a121_0x19df=function(){return _0x156322;};return a121_0x19df();}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 _0x3c331a=a121_0x2d63,{serviceRegistry:_0x53cf36,findDefinition:_0x40218b}=await import('../commands/registry.js'),_0xa7795a=new Set(_0x53cf36[_0x3c331a(0x1d8)](_0xa5c2d4=>_0xa5c2d4['service'])),_0x1e0686=listDynamicServiceEntries()[_0x3c331a(0x1db)](_0x1316b1=>!_0xa7795a[_0x3c331a(0x1de)](_0x1316b1['service'])),_0x5d8df0=a121_0x5a5856({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':getCliGitCommit(),'globalFlags':GLOBAL_FLAGS,'serviceRegistry':insertDynamicServicesAfterServiceTree(_0x53cf36,_0x1e0686),'buildAllFlags':buildAllFlags,'findDefinition':(_0x4ee904,_0x1db635)=>_0x40218b(_0x4ee904,_0x1db635)??findDynamicServiceDefinition(_0x4ee904,_0x1db635)});return normalizeSchemaPayload(_0x5d8df0);}function normalizeSchemaPayload(_0x5031bb){const _0x1b8c31=a121_0x2d63;return{..._0x5031bb,'schemaVersion':0x2,'services':_0x5031bb[_0x1b8c31(0x1df)][_0x1b8c31(0x1d8)](_0x196df2=>({..._0x196df2,'commands':_0x196df2['commands'][_0x1b8c31(0x1d8)](normalizeSchemaCommand)}))};}function normalizeSchemaCommand(_0x3772f1){const _0x564778=a121_0x2d63,_0x3a9432=_0x3772f1;return{..._0x3772f1,'auth':_0x3a9432[_0x564778(0x1e6)]??(_0x3772f1[_0x564778(0x1d7)]?_0x564778(0x1dc):_0x564778(0x1e1))};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a122_0x3ac7(){const _0x84b125=['3647fzVBvV','1BxAeml','170826xxSRfM','2535bVUVBy','1644yXINDT','1714392hEBpVg','1223853iUVPnz','11988zMeFoH','636VBHSOp','10mWiIms','2932911DzFnNI','findIndex','slice','1980gLFTaQ','service'];a122_0x3ac7=function(){return _0x84b125;};return a122_0x3ac7();}function a122_0x2c5d(_0x3ae2a8,_0x12a6d0){_0x3ae2a8=_0x3ae2a8-0x1ed;const _0x3ac730=a122_0x3ac7();let _0x2c5da6=_0x3ac730[_0x3ae2a8];return _0x2c5da6;}(function(_0xbb4a2a,_0x2a6da9){const _0x4b4f29=a122_0x2c5d,_0x50eee0=_0xbb4a2a();while(!![]){try{const _0x39ac65=parseInt(_0x4b4f29(0x1ef))/0x1*(parseInt(_0x4b4f29(0x1f0))/0x2)+-parseInt(_0x4b4f29(0x1f4))/0x3+-parseInt(_0x4b4f29(0x1f2))/0x4*(-parseInt(_0x4b4f29(0x1f1))/0x5)+-parseInt(_0x4b4f29(0x1f6))/0x6*(-parseInt(_0x4b4f29(0x1ee))/0x7)+-parseInt(_0x4b4f29(0x1f3))/0x8+parseInt(_0x4b4f29(0x1f8))/0x9*(parseInt(_0x4b4f29(0x1f7))/0xa)+parseInt(_0x4b4f29(0x1fb))/0xb*(parseInt(_0x4b4f29(0x1f5))/0xc);if(_0x39ac65===_0x2a6da9)break;else _0x50eee0['push'](_0x50eee0['shift']());}catch(_0x16489f){_0x50eee0['push'](_0x50eee0['shift']());}}}(a122_0x3ac7,0x38c11));export function insertDynamicServicesAfterServiceTree(_0x17cef9,_0x34ad19){const _0x45205e=a122_0x2c5d;if(_0x34ad19['length']===0x0)return[..._0x17cef9];const _0x3508dd=_0x17cef9[_0x45205e(0x1f9)](_0xb12b9b=>_0xb12b9b[_0x45205e(0x1ed)]===_0x45205e(0x1ed));if(_0x3508dd<0x0)return[..._0x17cef9,..._0x34ad19];return[..._0x17cef9[_0x45205e(0x1fa)](0x0,_0x3508dd+0x1),..._0x34ad19,..._0x17cef9[_0x45205e(0x1fa)](_0x3508dd+0x1)];}
|
package/lib/framework/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a123_0x2346(){var _0x454039=['5924lQllDu','476lcIKZt','8JSoACd','12XAgIxq','3156zGESZs','4814487dgAjue','1213706cbvVhx','941hjevYz','10510xEvrSd','1686cLBYrI','4125cxJaqO','1002JinrXO','2781160LbpFvp'];a123_0x2346=function(){return _0x454039;};return a123_0x2346();}(function(_0x1cac83,_0x1e75e7){var _0x1101d8=a123_0x4fdd,_0x76ef6e=_0x1cac83();while(!![]){try{var _0x324d13=parseInt(_0x1101d8(0x12b))/0x1*(parseInt(_0x1101d8(0x122))/0x2)+-parseInt(_0x1101d8(0x120))/0x3*(-parseInt(_0x1101d8(0x124))/0x4)+-parseInt(_0x1101d8(0x123))/0x5+parseInt(_0x1101d8(0x128))/0x6*(parseInt(_0x1101d8(0x125))/0x7)+-parseInt(_0x1101d8(0x126))/0x8*(parseInt(_0x1101d8(0x129))/0x9)+parseInt(_0x1101d8(0x12c))/0xa*(parseInt(_0x1101d8(0x121))/0xb)+-parseInt(_0x1101d8(0x127))/0xc*(-parseInt(_0x1101d8(0x12a))/0xd);if(_0x324d13===_0x1e75e7)break;else _0x76ef6e['push'](_0x76ef6e['shift']());}catch(_0x2c1914){_0x76ef6e['push'](_0x76ef6e['shift']());}}}(a123_0x2346,0xb3a63));function a123_0x4fdd(_0x22d595,_0x3cac67){_0x22d595=_0x22d595-0x120;var _0x234623=a123_0x2346();var _0x4fdd99=_0x234623[_0x22d595];return _0x4fdd99;}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const VERSION = "2.3.2
|
|
2
|
-
export declare const GIT_TAG = "v2.3.2
|
|
3
|
-
export declare const GIT_COMMIT = "
|
|
4
|
-
export declare const BUILD_TIME = "2026-09-
|
|
1
|
+
export declare const VERSION = "2.3.2";
|
|
2
|
+
export declare const GIT_TAG = "v2.3.2";
|
|
3
|
+
export declare const GIT_COMMIT = "87eba7c";
|
|
4
|
+
export declare const BUILD_TIME = "2026-09-04T10:05:43.700Z";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a124_0x2e27c6=a124_0x1fa2;(function(_0xdfe7a8,_0x575e30){const _0x4ee783=a124_0x1fa2,_0x4a975c=_0xdfe7a8();while(!![]){try{const _0x142873=parseInt(_0x4ee783(0x16a))/0x1+parseInt(_0x4ee783(0x16f))/0x2+parseInt(_0x4ee783(0x16e))/0x3*(-parseInt(_0x4ee783(0x168))/0x4)+parseInt(_0x4ee783(0x16d))/0x5+parseInt(_0x4ee783(0x171))/0x6+parseInt(_0x4ee783(0x170))/0x7+-parseInt(_0x4ee783(0x173))/0x8;if(_0x142873===_0x575e30)break;else _0x4a975c['push'](_0x4a975c['shift']());}catch(_0x329627){_0x4a975c['push'](_0x4a975c['shift']());}}}(a124_0x4636,0x66776));export const VERSION=a124_0x2e27c6(0x172);function a124_0x4636(){const _0x154210=['379800XNVICZ','2026-09-04T10:05:43.700Z','v2.3.2','154925vzNReV','90186Pormmb','157370rGcxBl','181636bnjeVY','4793628oMLiUe','2.3.2','3549792hZLLhO','60Qzrkmp','87eba7c'];a124_0x4636=function(){return _0x154210;};return a124_0x4636();}function a124_0x1fa2(_0x5626b8,_0x15ac52){_0x5626b8=_0x5626b8-0x168;const _0x463662=a124_0x4636();let _0x1fa214=_0x463662[_0x5626b8];return _0x1fa214;}export const GIT_TAG=a124_0x2e27c6(0x16c);export const GIT_COMMIT=a124_0x2e27c6(0x169);export const BUILD_TIME=a124_0x2e27c6(0x16b);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a125_0x5c5efb=a125_0x30ec;(function(_0x2026d1,_0x310a91){const _0x42cfa9=a125_0x30ec,_0x2bb3fb=_0x2026d1();while(!![]){try{const _0x159ec9=-parseInt(_0x42cfa9(0x1b1))/0x1*(parseInt(_0x42cfa9(0x1aa))/0x2)+-parseInt(_0x42cfa9(0x1b7))/0x3*(parseInt(_0x42cfa9(0x1b6))/0x4)+parseInt(_0x42cfa9(0x1ad))/0x5+parseInt(_0x42cfa9(0x1b2))/0x6*(parseInt(_0x42cfa9(0x1b4))/0x7)+parseInt(_0x42cfa9(0x1a3))/0x8*(parseInt(_0x42cfa9(0x1a1))/0x9)+-parseInt(_0x42cfa9(0x1ab))/0xa+parseInt(_0x42cfa9(0x1b9))/0xb;if(_0x159ec9===_0x310a91)break;else _0x2bb3fb['push'](_0x2bb3fb['shift']());}catch(_0x1a6321){_0x2bb3fb['push'](_0x2bb3fb['shift']());}}}(a125_0x4d34,0x9cd8a));export const ROUTING_CATALOG_DIGEST=a125_0x5c5efb(0x1a2);export const DEFAULT_REGION='cn';export const REGION_VALUES=['cn','id',a125_0x5c5efb(0x1af)];function a125_0x30ec(_0xafca65,_0x334d10){_0xafca65=_0xafca65-0x1a1;const _0x4d34af=a125_0x4d34();let _0x30ecca=_0x4d34af[_0xafca65];return _0x30ecca;}function a125_0x4d34(){const _0x3773b7=['china','7RQYFij','24DfKnPf','https://skills.lovrabet.id','1490650xfxXdN','https://daily-api.lovrabet.com','40kljLMD','263553VtbTjY','https://runtime.lovrabet.id','9687634iPeRJb','9UOmdiN','41caa63f2eaa9f96327376df380668b835ef80916584dc754147daf394c2c513','1529776jsNSlF','https://api.lovrabet.com','https://user-daily.lovrabet.com','indonesia','https://user.lovrabet.id','https://user.lovrabet.ai','https://runtime.lovrabet.ai','184654oJboRs','7660040xYajvB','Global','5047645BlCCRO','https://user.lovrabet.com','global'];a125_0x4d34=function(){return _0x3773b7;};return a125_0x4d34();}export const ENABLED_REGION_VALUES=['cn','id'];export const OFFICIAL_ROUTING_PROFILES={'cn':{'enabled':!![],'label':'Mainland\x20China','aliases':[a125_0x5c5efb(0x1b0)],'serviceDomains':{'production':{'user':a125_0x5c5efb(0x1ae),'api':a125_0x5c5efb(0x1a4),'runtime':'https://runtime.lovrabet.com','skill':'https://skills.lovrabet.com'},'daily':{'user':a125_0x5c5efb(0x1a5),'api':a125_0x5c5efb(0x1b5),'runtime':'https://daily-runtime.lovrabet.com','skill':'https://skills-daily.lovrabet.com'}}},'id':{'enabled':!![],'label':'Indonesia','aliases':[a125_0x5c5efb(0x1a6)],'serviceDomains':{'production':{'user':a125_0x5c5efb(0x1a7),'api':'https://api.lovrabet.id','runtime':a125_0x5c5efb(0x1b8),'skill':a125_0x5c5efb(0x1b3)}}},'global':{'enabled':![],'label':a125_0x5c5efb(0x1ac),'aliases':[],'serviceDomains':{'production':{'user':a125_0x5c5efb(0x1a8),'api':'https://api.lovrabet.ai','runtime':a125_0x5c5efb(0x1a9),'skill':'https://skills.lovrabet.ai'}}}};export const REGION_ALIASES={'china':'cn','indonesia':'id'};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a126_0x3164(){const _0x3f5cb4=['184550WmvTfH','apiDomain','skillDomain','1570478lWgONg','1080uZgGDG','lovrabet-routing/v1','664380vUNsnt','51e352a2636c432b76d331cc9ff81c215d7cbe3d1d07ab7bd7bedb7bdb91631c','runtimeDomain','3784020hStmfe','2279418ILbrAz','60CqxomT','userDomain','3IhIjoV','65730QvWTHH','455139keSVwW'];a126_0x3164=function(){return _0x3f5cb4;};return a126_0x3164();}const a126_0x5696df=a126_0xa521;(function(_0x371481,_0x47ea8c){const _0x3f0f4d=a126_0xa521,_0xd9d66d=_0x371481();while(!![]){try{const _0x5b02aa=-parseInt(_0x3f0f4d(0x200))/0x1+-parseInt(_0x3f0f4d(0x1f7))/0x2*(-parseInt(_0x3f0f4d(0x1fa))/0x3)+-parseInt(_0x3f0f4d(0x203))/0x4+-parseInt(_0x3f0f4d(0x1fd))/0x5+parseInt(_0x3f0f4d(0x1f6))/0x6+parseInt(_0x3f0f4d(0x1fb))/0x7*(parseInt(_0x3f0f4d(0x201))/0x8)+parseInt(_0x3f0f4d(0x1fc))/0x9*(-parseInt(_0x3f0f4d(0x1f8))/0xa);if(_0x5b02aa===_0x47ea8c)break;else _0xd9d66d['push'](_0xd9d66d['shift']());}catch(_0x2459d3){_0xd9d66d['push'](_0xd9d66d['shift']());}}}(a126_0x3164,0xeaa60));export const ENTERPRISE_ROUTING_SCHEMA_DIGEST=a126_0x5696df(0x1f4);export const ENTERPRISE_ROUTING_PROTOCOL=a126_0x5696df(0x202);export const ENTERPRISE_ROUTING_KIND='enterprise';export const ENTERPRISE_ROUTING_DOMAIN_FIELDS=[a126_0x5696df(0x1f9),a126_0x5696df(0x1fe),a126_0x5696df(0x1f5),'skillDomain'];function a126_0xa521(_0x32421b,_0x4a856c){_0x32421b=_0x32421b-0x1f4;const _0x316427=a126_0x3164();let _0xa521ee=_0x316427[_0x32421b];return _0xa521ee;}export const REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS=[a126_0x5696df(0x1f9),a126_0x5696df(0x1fe),a126_0x5696df(0x1f5),a126_0x5696df(0x1ff)];
|
package/lib/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x33eb6d,_0x3b3e44){const _0x9de626=a127_0x3aa0,_0x51ae10=_0x33eb6d();while(!![]){try{const _0x34d05b=-parseInt(_0x9de626(0x8c))/0x1*(-parseInt(_0x9de626(0x89))/0x2)+-parseInt(_0x9de626(0x7e))/0x3+-parseInt(_0x9de626(0x7f))/0x4*(parseInt(_0x9de626(0x82))/0x5)+-parseInt(_0x9de626(0x87))/0x6*(-parseInt(_0x9de626(0x83))/0x7)+-parseInt(_0x9de626(0x8b))/0x8*(-parseInt(_0x9de626(0x88))/0x9)+-parseInt(_0x9de626(0x86))/0xa*(parseInt(_0x9de626(0x7d))/0xb)+-parseInt(_0x9de626(0x85))/0xc*(-parseInt(_0x9de626(0x84))/0xd);if(_0x34d05b===_0x3b3e44)break;else _0x51ae10['push'](_0x51ae10['shift']());}catch(_0x552d3e){_0x51ae10['push'](_0x51ae10['shift']());}}}(a127_0xfead,0x80aa0));import{jsx as a127_0x1d444c,jsxs as a127_0x49d9c1}from'react/jsx-runtime';function a127_0xfead(){const _0xaf21b5=['804655KrFbyb','4865kEbElZ','4849oGscVn','39756USKzZg','40Ulyeen','1158fvflRf','18zTkRMB','1488484zQAZox','\x20to\x20view\x20available\x20commands.','205120myOTkk','1qNQNYR','column','\x20--help','1673716cNcPUj','1640943YFfJxf','12oHBZJC','\x20\x20Use\x20','green'];a127_0xfead=function(){return _0xaf21b5;};return a127_0xfead();}import{useEffect}from'react';function a127_0x3aa0(_0x4a2d44,_0x209efd){_0x4a2d44=_0x4a2d44-0x7d;const _0xfeadf5=a127_0xfead();let _0x3aa05e=_0xfeadf5[_0x4a2d44];return _0x3aa05e;}import{Box,Text,useApp}from'ink';import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function Help(){const _0x55113a=a127_0x3aa0,{exit:_0xedd5b}=useApp();return useEffect(()=>{_0xedd5b();},[_0xedd5b]),a127_0x49d9c1(Box,{'flexDirection':_0x55113a(0x8d),'marginTop':0x1,'marginBottom':0x1,'children':[a127_0x1d444c(Box,{'children':a127_0x1d444c(Text,{'bold':!![],'color':_0x55113a(0x81),'children':'\x20\x20'+CLI_DISPLAY_NAME})}),a127_0x49d9c1(Box,{'marginTop':0x1,'children':[a127_0x1d444c(Text,{'dimColor':!![],'children':_0x55113a(0x80)}),a127_0x1d444c(Text,{'bold':!![],'color':_0x55113a(0x81),'children':CLI_BIN_NAME+_0x55113a(0x8e)}),a127_0x1d444c(Text,{'dimColor':!![],'children':_0x55113a(0x8a)})]})]});}
|
package/lib/postinstall.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x176911,_0x3c03e0){const _0x54c107=a128_0x33ce,_0x27a036=_0x176911();while(!![]){try{const _0x1cada1=-parseInt(_0x54c107(0x19a))/0x1*(parseInt(_0x54c107(0x18c))/0x2)+parseInt(_0x54c107(0x18a))/0x3*(parseInt(_0x54c107(0x18f))/0x4)+-parseInt(_0x54c107(0x191))/0x5+parseInt(_0x54c107(0x18b))/0x6*(-parseInt(_0x54c107(0x192))/0x7)+parseInt(_0x54c107(0x189))/0x8+parseInt(_0x54c107(0x193))/0x9+parseInt(_0x54c107(0x196))/0xa;if(_0x1cada1===_0x3c03e0)break;else _0x27a036['push'](_0x27a036['shift']());}catch(_0x34773e){_0x27a036['push'](_0x27a036['shift']());}}}(a128_0x3d4e,0xcd420));import{installBuiltinSkill}from'./skills/builtin-skill.js';function a128_0x33ce(_0x19ca15,_0x12822a){_0x19ca15=_0x19ca15-0x185;const _0x3d4ef3=a128_0x3d4e();let _0x33ced7=_0x3d4ef3[_0x19ca15];return _0x33ced7;}function a128_0x3d4e(){const _0x4ef80b=['FAILED','\x20at\x20','3409EJNWjX','Repair\x20with:\x20','installedPath','SOURCE_INVALID','repairCommand','error','[BUILTIN_SKILL_INSTALL_','Lovrabet\x20Built-in\x20Skill\x20','9617400YoxlGr','159633uLHQYZ','6ysYFHi','668Sndrtm','skillVersion','log','4nVwwnm','installed','4986590xGRVxE','6464087NezPoH','3766914PvsehZ','\x20via\x20skills@latest','code','22261690knzSYa','warn'];a128_0x3d4e=function(){return _0x4ef80b;};return a128_0x3d4e();}export async function runPostinstall(_0x544f9f={}){const _0x4f45fc=a128_0x33ce,_0x147217=installBuiltinSkill(_0x544f9f);if(_0x147217['ok']){const _0x4596d7=_0x147217['changed']?_0x4f45fc(0x190):'already\x20current',_0x4e0b35=_0x147217['installedPath']?_0x4f45fc(0x199)+_0x147217[_0x4f45fc(0x19c)]:_0x4f45fc(0x194);return console[_0x4f45fc(0x18e)](_0x4f45fc(0x188)+_0x147217[_0x4f45fc(0x18d)]+'\x20'+_0x4596d7+_0x4e0b35),_0x147217;}const _0x2082e4=_0x4f45fc(0x187)+(_0x147217[_0x4f45fc(0x195)]??_0x4f45fc(0x198))+']\x20'+(_0x147217[_0x4f45fc(0x186)]??'Installation\x20failed')+'.\x20'+(_0x4f45fc(0x19b)+_0x147217[_0x4f45fc(0x185)]);if(_0x147217[_0x4f45fc(0x195)]===_0x4f45fc(0x19d))throw new Error(_0x2082e4);return console[_0x4f45fc(0x197)](_0x2082e4),_0x147217;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1f96f5,_0x5bceb3){const _0x1b01ff=a129_0x9058,_0x3b2b29=_0x1f96f5();while(!![]){try{const _0x266911=parseInt(_0x1b01ff(0xb8))/0x1+parseInt(_0x1b01ff(0xad))/0x2+parseInt(_0x1b01ff(0xae))/0x3+parseInt(_0x1b01ff(0xaf))/0x4*(-parseInt(_0x1b01ff(0xb7))/0x5)+-parseInt(_0x1b01ff(0xb1))/0x6+parseInt(_0x1b01ff(0xb3))/0x7+parseInt(_0x1b01ff(0xab))/0x8;if(_0x266911===_0x5bceb3)break;else _0x3b2b29['push'](_0x3b2b29['shift']());}catch(_0xc4a131){_0x3b2b29['push'](_0x3b2b29['shift']());}}}(a129_0x3c43,0x8e148));function a129_0x3c43(){const _0x382a4f=['164185tWjape','49058YmojjX','Run\x20this\x20write\x20operation','write','10218816tOdEIH','Lovrabet\x20confirmation\x20requires\x20a\x20write\x20command.','451370fEFKsr','199314qJASXd','44UfLQaD','confirmationDescription','6833448dJTwlS','replace','3244794GBLMUx','risk','trim','slice'];a129_0x3c43=function(){return _0x382a4f;};return a129_0x3c43();}const DESCRIPTION_MAX_LENGTH=0x1f4;export function buildLovrabetConfirmationRequest(_0x43dc64,_0x3ef169,_0x27cccd){const _0x51a55d=a129_0x9058,_0x15a354=normalizeText(_0x43dc64[_0x51a55d(0xb0)],DESCRIPTION_MAX_LENGTH),_0x55508a=normalizeText(_0x43dc64['description'],DESCRIPTION_MAX_LENGTH);return{'operation':_0x3ef169,'risk':requireWriteRisk(_0x43dc64),'description':_0x15a354||_0x55508a||_0x51a55d(0xb9),..._0x27cccd?{'signal':_0x27cccd}:{}};}function requireWriteRisk(_0x26694c){const _0xf03b12=a129_0x9058;if(_0x26694c['risk']===_0xf03b12(0xba)||_0x26694c['risk']==='high-risk-write')return _0x26694c[_0xf03b12(0xb4)];throw new Error(_0xf03b12(0xac));}function a129_0x9058(_0x1af20b,_0x46799b){_0x1af20b=_0x1af20b-0xab;const _0x3c43fa=a129_0x3c43();let _0x9058b7=_0x3c43fa[_0x1af20b];return _0x9058b7;}function normalizeText(_0xaa5fc1,_0xb8ce77){const _0x203980=a129_0x9058;if(typeof _0xaa5fc1!=='string')return'';return _0xaa5fc1[_0x203980(0xb2)](/[\u0000-\u001f\u007f]+/g,'\x20')[_0x203980(0xb2)](/\s+/g,'\x20')[_0x203980(0xb5)]()[_0x203980(0xb6)](0x0,_0xb8ce77);}
|
package/lib/runtime/event.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x203368,_0x4b9270){const _0x8f9c3d=a130_0x5e45,_0x324c6c=_0x203368();while(!![]){try{const _0x4cac32=parseInt(_0x8f9c3d(0x1d8))/0x1*(parseInt(_0x8f9c3d(0x1d2))/0x2)+parseInt(_0x8f9c3d(0x1db))/0x3+parseInt(_0x8f9c3d(0x1d6))/0x4+parseInt(_0x8f9c3d(0x1cd))/0x5+parseInt(_0x8f9c3d(0x1d4))/0x6+parseInt(_0x8f9c3d(0x1cc))/0x7+parseInt(_0x8f9c3d(0x1da))/0x8*(-parseInt(_0x8f9c3d(0x1ce))/0x9);if(_0x4cac32===_0x4b9270)break;else _0x324c6c['push'](_0x324c6c['shift']());}catch(_0x37bffe){_0x324c6c['push'](_0x324c6c['shift']());}}}(a130_0x23aa,0x8f798));export function canonicalLovrabetOperation(_0x284795){const _0x1ec035=a130_0x5e45;return[_0x284795['service'],..._0x284795[_0x1ec035(0x1d7)][_0x1ec035(0x1d0)]()[_0x1ec035(0x1d1)](/\s+/)][_0x1ec035(0x1d3)](Boolean)[_0x1ec035(0x1d5)]('.');}function a130_0x5e45(_0x2fac19,_0x710bdd){_0x2fac19=_0x2fac19-0x1cb;const _0x23aaf5=a130_0x23aa();let _0x5e4589=_0x23aaf5[_0x2fac19];return _0x5e4589;}export function createLovrabetWriteMetadata(_0x53bc81,_0x3f224e,_0x380388,_0x30f489){const _0x16e7af=a130_0x5e45;if(_0x30f489||_0x380388['ok']!==!![]||_0x53bc81[_0x16e7af(0x1cb)]!==_0x16e7af(0x1cf)&&_0x53bc81[_0x16e7af(0x1cb)]!==_0x16e7af(0x1d9))return undefined;const _0x3a05d3=_0x53bc81['writeEventSubject']?.(_0x380388),_0x1993d9={'type':'lovrabet.write.completed','operation':_0x3f224e,'risk':_0x53bc81['risk'],..._0x3a05d3?{'subject':_0x3a05d3}:{}};return{'lovrabet':{'schemaVersion':0x1,'event':_0x1993d9}};}function a130_0x23aa(){const _0x240801=['trim','split','2UzHPeQ','filter','2991324jiVoRC','join','921504ShRPvf','command','84177MCGigY','high-risk-write','304nCuAfH','3042684kihBrO','risk','5717614wLqfQQ','5675775BfCSJG','755910WkNBzv','write'];a130_0x23aa=function(){return _0x240801;};return a130_0x23aa();}
|