@lovrabet/lovrabet-cli 2.3.4-beta.1 → 2.3.4-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/README.md +8 -6
- package/lib/cli.js +1 -1
- package/lib/commands/api-doc/index.js +1 -1
- package/lib/commands/app/cache.js +1 -1
- package/lib/commands/app/definitions.js +1 -1
- package/lib/commands/app/eligibility.js +1 -1
- package/lib/commands/app/mock-loader.js +1 -1
- package/lib/commands/app/remote-source.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/approval/index.js +1 -1
- package/lib/commands/artifact/index.js +1 -1
- package/lib/commands/auth/device.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/auth/prompt.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/exec.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/common/config-policy.js +1 -1
- package/lib/commands/common/constraints.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/config/definitions.js +1 -1
- package/lib/commands/config/init.d.ts +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.d.ts +2 -2
- package/lib/config/domain-config.js +1 -1
- package/lib/config/schema.d.ts +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/app.js +1 -1
- package/lib/constant/auth-mode.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/distribution.js +1 -1
- package/lib/constant/domain.d.ts +4 -0
- 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.d.ts +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.d.ts +12 -3
- package/lib/generated/official-routing.js +1 -1
- package/lib/generated/routing-contract.d.ts +2 -2
- 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.d.ts +5 -0
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/runtime-skill-sync/constants.js +1 -1
- package/lib/skills/runtime-skill-sync/fs-utils.js +1 -1
- package/lib/skills/runtime-skill-sync/hashing.js +1 -1
- package/lib/skills/runtime-skill-sync/install-target.js +1 -1
- package/lib/skills/runtime-skill-sync/links.js +1 -1
- package/lib/skills/runtime-skill-sync/list-local.js +1 -1
- package/lib/skills/runtime-skill-sync/local-files.js +1 -1
- package/lib/skills/runtime-skill-sync/materialize.js +1 -1
- package/lib/skills/runtime-skill-sync/metadata.js +1 -1
- package/lib/skills/runtime-skill-sync/paths.js +1 -1
- package/lib/skills/runtime-skill-sync/push.js +1 -1
- package/lib/skills/runtime-skill-sync/scopes.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-codec.js +1 -1
- package/lib/skills/runtime-skill-sync/zip-package.js +1 -1
- package/lib/skills/runtime-skill-sync.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/utils/access-key-redaction.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/lossless-json.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/positive-safe-integer.js +1 -1
- package/lib/utils/redaction.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
- package/skills/lovrabet/SKILL.md +2 -2
- package/skills/lovrabet/guides/troubleshooting.md +1 -1
- package/skills/lovrabet/references/lovrabet-config-commands.md +8 -7
- package/skills/lovrabet/references/lovrabet-config.md +3 -2
- package/skills/lovrabet/references/lovrabet-doctor.md +1 -1
- package/skills/lovrabet/references/lovrabet-kb-workflow.md +8 -6
- package/skills/lovrabet/references/lovrabet-service-tree.md +1 -1
- package/skills/lovrabet.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x45956f,_0x324d2f){var _0xfba4d0=a109_0x49fa,_0x19e0cd=_0x45956f();while(!![]){try{var _0xff40f1=parseInt(_0xfba4d0(0x1f8))/0x1+-parseInt(_0xfba4d0(0x1f4))/0x2+parseInt(_0xfba4d0(0x1f3))/0x3+-parseInt(_0xfba4d0(0x1f6))/0x4+-parseInt(_0xfba4d0(0x1f9))/0x5+-parseInt(_0xfba4d0(0x1fa))/0x6*(parseInt(_0xfba4d0(0x1f7))/0x7)+parseInt(_0xfba4d0(0x1f5))/0x8*(parseInt(_0xfba4d0(0x1f2))/0x9);if(_0xff40f1===_0x324d2f)break;else _0x19e0cd['push'](_0x19e0cd['shift']());}catch(_0x25f4bc){_0x19e0cd['push'](_0x19e0cd['shift']());}}}(a109_0x3aed,0xa5821));import{DEFAULT_COMMAND_OUTPUT_FORMAT}from'../constant/defaults.js';import{buildAllFlags as a109_0x169fdb}from'@lovrabet/cli-framework';function a109_0x49fa(_0x3b6c3e,_0x141fc9){_0x3b6c3e=_0x3b6c3e-0x1f2;var _0x3aed86=a109_0x3aed();var _0x49faa5=_0x3aed86[_0x3b6c3e];return _0x49faa5;}function a109_0x3aed(){var _0x5504d4=['554948enFrte','56tUrlYS','906108BmqIKl','2952621QOQEVK','1189358thoJdi','5296080mHyWpu','6aQImhc','958788euWiGb','2183577ErhZku'];a109_0x3aed=function(){return _0x5504d4;};return a109_0x3aed();}export function buildAllFlags(_0xe8cfa1){return a109_0x169fdb(_0xe8cfa1,{'defaultOutputFormat':DEFAULT_COMMAND_OUTPUT_FORMAT});}
|
package/lib/framework/dryrun.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a110_0x1254(){const _0x4bd3d9=['2072TxyQWI','22166KcSKZZ','1431exNEve','21156HBCreC','1326300wQhSjD','3418701fdMntj','3640152qmoJCs','10399170ozJKjj','description','95jUUxHx','18632GMcCvW','body'];a110_0x1254=function(){return _0x4bd3d9;};return a110_0x1254();}function a110_0x412e(_0x2a628f,_0x3fc726){_0x2a628f=_0x2a628f-0x1ec;const _0x1254cb=a110_0x1254();let _0x412e12=_0x1254cb[_0x2a628f];return _0x412e12;}(function(_0x348996,_0x11728b){const _0x714bae=a110_0x412e,_0x45e26a=_0x348996();while(!![]){try{const _0x3b0037=-parseInt(_0x714bae(0x1f3))/0x1*(-parseInt(_0x714bae(0x1f7))/0x2)+parseInt(_0x714bae(0x1ef))/0x3+-parseInt(_0x714bae(0x1f0))/0x4+-parseInt(_0x714bae(0x1ee))/0x5+parseInt(_0x714bae(0x1ed))/0x6*(parseInt(_0x714bae(0x1f6))/0x7)+-parseInt(_0x714bae(0x1f4))/0x8*(parseInt(_0x714bae(0x1ec))/0x9)+-parseInt(_0x714bae(0x1f1))/0xa;if(_0x3b0037===_0x11728b)break;else _0x45e26a['push'](_0x45e26a['shift']());}catch(_0x2c2815){_0x45e26a['push'](_0x45e26a['shift']());}}}(a110_0x1254,0x9ed7e));export function dryRun(_0xe2450f,_0x5403a5){const _0xd2e39c={'method':_0xe2450f,'url':_0x5403a5},_0x45a111={'body'(_0x42a96a){const _0x3a2f48=a110_0x412e;return _0xd2e39c[_0x3a2f48(0x1f5)]=_0x42a96a,_0x45a111;},'description'(_0x53af89){const _0x12e97f=a110_0x412e;return _0xd2e39c[_0x12e97f(0x1f2)]=_0x53af89,_0x45a111;},'build'(){return{..._0xd2e39c};}};return _0x45a111;}
|
package/lib/framework/flags.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a111_0x10b1(){const _0x10bebb=['validateFlags','2414766CrQWyQ','548800yvYSEN','1448pbocXO','2sggzRp','10yeSVqN','5574604SEljBu','30344AzVRDc','583lxEAFY','3280410fymlwP','36225kjtySf','3670308umLJsd','parseFlags'];a111_0x10b1=function(){return _0x10bebb;};return a111_0x10b1();}function a111_0x3b2b(_0x596a9e,_0x4520e5){_0x596a9e=_0x596a9e-0xae;const _0x10b12a=a111_0x10b1();let _0x3b2bc9=_0x10b12a[_0x596a9e];return _0x3b2bc9;}const a111_0x4d66af=a111_0x3b2b;(function(_0x50210d,_0xee9531){const _0x13bed8=a111_0x3b2b,_0x15b763=_0x50210d();while(!![]){try{const _0x546c44=parseInt(_0x13bed8(0xaf))/0x1*(-parseInt(_0x13bed8(0xb2))/0x2)+parseInt(_0x13bed8(0xb6))/0x3+-parseInt(_0x13bed8(0xb1))/0x4+-parseInt(_0x13bed8(0xb0))/0x5*(parseInt(_0x13bed8(0xb9))/0x6)+-parseInt(_0x13bed8(0xb4))/0x7+parseInt(_0x13bed8(0xae))/0x8*(-parseInt(_0x13bed8(0xb5))/0x9)+-parseInt(_0x13bed8(0xba))/0xa*(-parseInt(_0x13bed8(0xb3))/0xb);if(_0x546c44===_0xee9531)break;else _0x15b763['push'](_0x15b763['shift']());}catch(_0x3c3e09){_0x15b763['push'](_0x15b763['shift']());}}}(a111_0x10b1,0xac5d4));import{createFlagHelpers}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const helpers=createFlagHelpers(CliErrors);export const parseFlags=helpers[a111_0x4d66af(0xb7)];export const validateFlags=helpers[a111_0x4d66af(0xb8)];
|
package/lib/framework/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2eb1a1,_0x35e83f){const _0xd55435=a112_0x5c13,_0x26e51b=_0x2eb1a1();while(!![]){try{const _0x124401=-parseInt(_0xd55435(0xb8))/0x1+-parseInt(_0xd55435(0xba))/0x2*(-parseInt(_0xd55435(0xc5))/0x3)+parseInt(_0xd55435(0xc3))/0x4+-parseInt(_0xd55435(0xc9))/0x5*(-parseInt(_0xd55435(0xbe))/0x6)+parseInt(_0xd55435(0xc0))/0x7+parseInt(_0xd55435(0xbc))/0x8+-parseInt(_0xd55435(0xbf))/0x9*(parseInt(_0xd55435(0xc7))/0xa);if(_0x124401===_0x35e83f)break;else _0x26e51b['push'](_0x26e51b['shift']());}catch(_0x1784a9){_0x26e51b['push'](_0x26e51b['shift']());}}}(a112_0xa99d,0xa21fb));import{createHelpGenerators}from'@lovrabet/cli-framework';function a112_0x5c13(_0x8568ff,_0x476a49){_0x8568ff=_0x8568ff-0xb7;const _0xa99def=a112_0xa99d();let _0x5c13fc=_0xa99def[_0x8568ff];return _0x5c13fc;}import{buildAllFlags}from'../framework/build-all-flags.js';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';function a112_0xa99d(){const _0x2797f2=['service','152628OUXbPH','filter','19343680LpmgwB','newConfigFileName','2150IZzLtl','Requires\x20appcode\x20(set\x20via\x20','1001240xGrAAD','generateCommandHelp','28iuoJGB','generateServiceHelp','6242648bSGEZG','get','7488EiowJe','9uSZzoj','7778638NTtEoF','generateFullHelp','\x20or\x20--appcode).','1836792asBRhP'];a112_0xa99d=function(){return _0x2797f2;};return a112_0xa99d();}import{PRODUCT_CONFIG}from'../constant/product.js';function createGenerators(){const _0x1d004d=a112_0x5c13;return createHelpGenerators({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'globalFlags':GLOBAL_FLAGS,'serviceRegistry':insertDynamicServicesAfterServiceTree(serviceRegistry,safeListDynamicServiceEntries()),'getServiceEntry':getAnyServiceEntry,'getServiceDefinitions':getAnyServiceDefinitions,'buildAllFlags':buildAllFlags,'appPrerequisiteText':_0x1d004d(0xb7)+PRODUCT_CONFIG[_0x1d004d(0xc8)]+_0x1d004d(0xc2)});}export function generateCommandHelp(_0x169cd9){const _0x7eca02=a112_0x5c13;return createGenerators()[_0x7eca02(0xb9)](_0x169cd9);}export function generateServiceHelp(_0x4a4c08){const _0x55f371=a112_0x5c13;return createGenerators()[_0x55f371(0xbb)](_0x4a4c08);}export function generateFullHelp(){const _0x48105d=a112_0x5c13;return createGenerators()[_0x48105d(0xc1)]();}function getAnyServiceEntry(_0x667d0){const _0x14eb1b=getServiceEntry(_0x667d0);if(_0x14eb1b)return _0x14eb1b;try{return getDynamicServiceEntry(_0x667d0);}catch{return undefined;}}function getAnyServiceDefinitions(_0x33b64a){const _0x12eb80=a112_0x5c13,_0x2afaa9=serviceGroups[_0x12eb80(0xbd)](_0x33b64a);if(_0x2afaa9)return _0x2afaa9;try{return getDynamicServiceDefinitions(_0x33b64a);}catch{return undefined;}}function safeListDynamicServiceEntries(){const _0x3c0fbe=a112_0x5c13,_0x2fcf23=new Set(serviceRegistry['map'](_0x3bcef7=>_0x3bcef7['service']));try{return listDynamicServiceEntries()[_0x3c0fbe(0xc6)](_0x74fa5=>!_0x2fcf23['has'](_0x74fa5[_0x3c0fbe(0xc4)]));}catch{return[];}}
|
package/lib/framework/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5abc4d,_0x3b3a37){var _0x5bfa13=a113_0x12a3,_0x2cfef6=_0x5abc4d();while(!![]){try{var _0x4f2d66=-parseInt(_0x5bfa13(0x14a))/0x1+parseInt(_0x5bfa13(0x149))/0x2*(-parseInt(_0x5bfa13(0x14d))/0x3)+parseInt(_0x5bfa13(0x14e))/0x4+-parseInt(_0x5bfa13(0x148))/0x5+-parseInt(_0x5bfa13(0x14f))/0x6+-parseInt(_0x5bfa13(0x14b))/0x7+parseInt(_0x5bfa13(0x14c))/0x8;if(_0x4f2d66===_0x3b3a37)break;else _0x2cfef6['push'](_0x2cfef6['shift']());}catch(_0x59fb7a){_0x2cfef6['push'](_0x2cfef6['shift']());}}}(a113_0x2704,0x26f40));function a113_0x12a3(_0x4b8039,_0x139fcd){_0x4b8039=_0x4b8039-0x148;var _0x270489=a113_0x2704();var _0x12a34d=_0x270489[_0x4b8039];return _0x12a34d;}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';function a113_0x2704(){var _0x469c03=['139564wiaiVN','1795738fjDcNg','4143816NomuhH','6lZraQe','1040488GEldSf','270888tuoDFz','205795tRDugU','136142mDpiIY'];a113_0x2704=function(){return _0x469c03;};return a113_0x2704();}export{dryRun}from'../framework/dryrun.js';export{riskLevelOrder,isValidFormat}from'../framework/types.js';
|
package/lib/framework/output.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x594f3a,_0x337933){const _0x2c1d02=a114_0x4022,_0x2d5432=_0x594f3a();while(!![]){try{const _0x3c0ea3=-parseInt(_0x2c1d02(0x9b))/0x1+-parseInt(_0x2c1d02(0x9c))/0x2*(-parseInt(_0x2c1d02(0x96))/0x3)+parseInt(_0x2c1d02(0x9f))/0x4+parseInt(_0x2c1d02(0x91))/0x5*(-parseInt(_0x2c1d02(0x93))/0x6)+-parseInt(_0x2c1d02(0x90))/0x7*(-parseInt(_0x2c1d02(0x99))/0x8)+-parseInt(_0x2c1d02(0x95))/0x9*(parseInt(_0x2c1d02(0x98))/0xa)+parseInt(_0x2c1d02(0x97))/0xb;if(_0x3c0ea3===_0x337933)break;else _0x2d5432['push'](_0x2d5432['shift']());}catch(_0x2c0cab){_0x2d5432['push'](_0x2d5432['shift']());}}}(a114_0x7b16,0x92233));import{createFormatOutput,resolveBundledJqPaths}from'@lovrabet/cli-framework';import{CliErrors}from'../errors.js';const baseFormatOutput=createFormatOutput({'cliErrors':CliErrors,'jqBinaryResolverOptions':{'bundledJqPaths':resolveBundledJqPaths()}});export function formatOutput(_0x401196,_0x69451c){const _0x158ec1=a114_0x4022,_0x4d5977=_0x401196[_0x158ec1(0x94)],{_notice:_0x23fba9,..._0x3a36fd}=_0x401196;void _0x23fba9,baseFormatOutput(_0x3a36fd,_0x69451c),_0x69451c['format']===_0x158ec1(0x92)&&printPrettyNotice(_0x4d5977);}function a114_0x4022(_0x58f808,_0x24e92e){_0x58f808=_0x58f808-0x90;const _0x7b1651=a114_0x7b16();let _0x40227a=_0x7b1651[_0x58f808];return _0x40227a;}function a114_0x7b16(){const _0x4fbe53=['6kaAWYh','_notice','340182LyPIcv','1173747vvyevl','2356343JYYbDk','250aAmkkm','808NCGvSL','error','727855BZpzqh','4FlHkol','update','url','3130196mBLWDC','49959rqXSnF','1143565NcumqC','pretty'];a114_0x7b16=function(){return _0x4fbe53;};return a114_0x7b16();}function printPrettyNotice(_0x9a9f79){const _0x3622fc=a114_0x4022;if(!_0x9a9f79?.[_0x3622fc(0x9d)])return;console[_0x3622fc(0x9a)](_0x9a9f79['update']['message']+'\x20('+_0x9a9f79[_0x3622fc(0x9d)][_0x3622fc(0x9e)]+')');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x10a361,_0x2a5779){const _0x1878a0=a115_0x230f,_0x3f00ea=_0x10a361();while(!![]){try{const _0x3114d9=-parseInt(_0x1878a0(0x144))/0x1+-parseInt(_0x1878a0(0x150))/0x2*(parseInt(_0x1878a0(0x149))/0x3)+-parseInt(_0x1878a0(0x140))/0x4+parseInt(_0x1878a0(0x14a))/0x5+parseInt(_0x1878a0(0x152))/0x6*(parseInt(_0x1878a0(0x151))/0x7)+parseInt(_0x1878a0(0x14d))/0x8*(-parseInt(_0x1878a0(0x14e))/0x9)+parseInt(_0x1878a0(0x13e))/0xa*(parseInt(_0x1878a0(0x13b))/0xb);if(_0x3114d9===_0x2a5779)break;else _0x3f00ea['push'](_0x3f00ea['shift']());}catch(_0x80e26c){_0x3f00ea['push'](_0x3f00ea['shift']());}}}(a115_0x160c,0x7424c));export function toKebab(_0x201275){const _0xbb9042=a115_0x230f;return _0x201275[_0xbb9042(0x153)](/_/g,'-')[_0xbb9042(0x153)](/-([A-Z]+)/g,(_0x5755ac,_0x3df113)=>'-'+_0x3df113[_0xbb9042(0x133)]())[_0xbb9042(0x153)](/([a-z0-9])([A-Z])/g,(_0x3d7beb,_0x1999b6,_0x42c3a2)=>_0x1999b6+'-'+_0x42c3a2)[_0xbb9042(0x133)]();}function buildKnownFlags(_0xc2e4d8){const _0x10e936=a115_0x230f,_0x34b3a7=new Set();for(const _0x2f012a of _0xc2e4d8){_0x34b3a7['add'](_0x2f012a[_0x10e936(0x142)]),_0x34b3a7[_0x10e936(0x145)](toCamelCase(_0x2f012a['name']));}for(const _0x23a433 of[_0x10e936(0x13f),'dryRun',_0x10e936(0x13c),_0x10e936(0x155)]){_0x34b3a7[_0x10e936(0x145)](_0x23a433);}for(const _0x2c5747 of['help',_0x10e936(0x137),_0x10e936(0x13d),_0x10e936(0x135),'nonInteractive','non-interactive','ci',_0x10e936(0x134),'version']){_0x34b3a7[_0x10e936(0x145)](_0x2c5747);}return _0x34b3a7;}function buildFlagTypeMap(_0x40f2a7){const _0x31e124=a115_0x230f,_0xa74b48=new Map();for(const _0x24a2f1 of _0x40f2a7){_0xa74b48[_0x31e124(0x13a)](_0x24a2f1[_0x31e124(0x142)],_0x24a2f1[_0x31e124(0x146)]),_0xa74b48['set'](toCamelCase(_0x24a2f1[_0x31e124(0x142)]),_0x24a2f1[_0x31e124(0x146)]);}return _0xa74b48;}function toCamelCase(_0x8eba69){const _0x542ec1=a115_0x230f;return _0x8eba69['replace'](/-([a-z])/g,(_0x5532b4,_0x2a0925)=>_0x2a0925[_0x542ec1(0x148)]());}function a115_0x160c(){const _0x1ecdcb=['2351476HbOmEQ','number','name','original','805104KoppdP','add','type','corrected','toUpperCase','21WjDQkJ','2039245YfELCy','alias','boolean','1107384loSvlN','54JtKXcv','push','226308BOSjFx','4445TKgMZr','3126OSitpm','replace','has','format','length','string','toLowerCase','global','app','slice','env','get','entries','set','30278919bTHVtA','yes','appcode','10AqLzKG','dry-run'];a115_0x160c=function(){return _0x1ecdcb;};return a115_0x160c();}function aliasHandler(_0x497fee,_0x526cae){const _0x24a9b9=a115_0x230f,_0x1bb028=[];for(const _0x57e359 of Object['keys'](_0x497fee)){if(_0x526cae['has'](_0x57e359))continue;const _0x366bcd=toKebab(_0x57e359);_0x366bcd!==_0x57e359&&_0x526cae['has'](_0x366bcd)&&_0x1bb028[_0x24a9b9(0x14f)]({'original':_0x57e359,'corrected':_0x366bcd,'handler':_0x24a9b9(0x14b)});}return _0x1bb028;}function a115_0x230f(_0x4a02f,_0x5a624a){_0x4a02f=_0x4a02f-0x133;const _0x160c91=a115_0x160c();let _0x230ff2=_0x160c91[_0x4a02f];return _0x230ff2;}function stickyHandler(_0x3164ac,_0x4b02ae,_0x5238a9){const _0x1209ad=a115_0x230f,_0xb78be3=[];for(const [_0x2419d6,_0x2bdfa3]of Object[_0x1209ad(0x139)](_0x3164ac)){if(_0x2bdfa3!==!![])continue;for(let _0x5e0b1c=_0x2419d6[_0x1209ad(0x156)]-0x1;_0x5e0b1c>0x0;_0x5e0b1c--){const _0x31266c=_0x2419d6['slice'](0x0,_0x5e0b1c),_0xb1da45=_0x2419d6[_0x1209ad(0x136)](_0x5e0b1c),_0x5e39d3=toKebab(_0x31266c),_0x220510=toCamelCase(_0x31266c),_0x19904b=_0x4b02ae[_0x1209ad(0x154)](_0x31266c)?_0x31266c:_0x4b02ae[_0x1209ad(0x154)](_0x5e39d3)?_0x5e39d3:_0x4b02ae[_0x1209ad(0x154)](_0x220510)?_0x220510:null;if(!_0x19904b)continue;const _0x175acf=_0x5238a9[_0x1209ad(0x138)](_0x19904b)??_0x1209ad(0x157);let _0x125bf8;if(_0x175acf===_0x1209ad(0x141)){const _0x5ed4a6=Number(_0xb1da45);if(isNaN(_0x5ed4a6)||_0xb1da45==='')continue;_0x125bf8=_0x5ed4a6;}else{if(_0x175acf===_0x1209ad(0x14c))continue;else{if(_0xb1da45==='')continue;_0x125bf8=_0xb1da45;}}_0xb78be3['push']({'original':_0x2419d6,'corrected':_0x19904b+'='+_0x125bf8,'handler':'sticky'});break;}}return _0xb78be3;}export function correctFlags(_0x7ef928,_0x2e6c67){const _0x4effa2=a115_0x230f,_0x20da47=buildKnownFlags(_0x2e6c67),_0x5d1b7d=buildFlagTypeMap(_0x2e6c67),_0x3c4464=aliasHandler(_0x7ef928,_0x20da47),_0x588c52=stickyHandler(_0x7ef928,_0x20da47,_0x5d1b7d),_0x4e1a91=[..._0x3c4464,..._0x588c52];if(_0x4e1a91['length']===0x0)return{'flags':_0x7ef928,'corrections':[]};const _0x324e2d={..._0x7ef928},_0x11aeae=new Set();for(const _0x31deb6 of _0x3c4464){_0x324e2d[_0x31deb6[_0x4effa2(0x147)]]=_0x7ef928[_0x31deb6['original']],_0x11aeae['add'](_0x31deb6[_0x4effa2(0x143)]);}for(const _0x8ee88b of _0x588c52){const _0x2439c6=_0x8ee88b[_0x4effa2(0x147)]['indexOf']('='),_0xc585e3=_0x8ee88b[_0x4effa2(0x147)][_0x4effa2(0x136)](0x0,_0x2439c6),_0x1f8f9f=_0x8ee88b[_0x4effa2(0x147)][_0x4effa2(0x136)](_0x2439c6+0x1),_0x49aa68=_0x5d1b7d[_0x4effa2(0x138)](_0xc585e3)??_0x4effa2(0x157);_0x49aa68===_0x4effa2(0x141)?_0x324e2d[_0xc585e3]=Number(_0x1f8f9f):_0x324e2d[_0xc585e3]=_0x1f8f9f,_0x11aeae[_0x4effa2(0x145)](_0x8ee88b['original']);}for(const _0x401ebf of _0x11aeae){delete _0x324e2d[_0x401ebf];}return{'flags':_0x324e2d,'corrections':_0x4e1a91};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a116_0x3d34d6=a116_0x4562;function a116_0x4ed4(){const _0x9f727d=['Request\x20rate\x20limit\x20exceeded.','750234NnEnnI','5918460OZDYiG','6871xgDnFt','trim','14SWykrK','retry-after','toLowerCase','15366175PsytAV','9XSWeIR','Wait\x20','\x20Retry\x20only\x20the\x20failed\x20item;\x20keep\x20requests\x20serial\x20and\x20preserve\x20completed\x20checkpoints.','call','2304015ygZaPh','318Cahmkb','entries','4vziFeO','IP_RATE_LIMIT_EXCEEDED','Retry\x20after\x20','MAX_QPS_LIMIT','4210808Frehlm','string','function','4612835NDdiWu','number','toUpperCase','isInteger','status','isArray','errorCode','test','has','Retry-After','object','Retry\x20after\x20a\x20short\x20delay.'];a116_0x4ed4=function(){return _0x9f727d;};return a116_0x4ed4();}(function(_0x7f0042,_0x5d3740){const _0x3c4f81=a116_0x4562,_0x5cf1bc=_0x7f0042();while(!![]){try{const _0x1cd2f8=-parseInt(_0x3c4f81(0xde))/0x1*(-parseInt(_0x3c4f81(0xe9))/0x2)+parseInt(_0x3c4f81(0xe8))/0x3+-parseInt(_0x3c4f81(0xeb))/0x4*(parseInt(_0x3c4f81(0xcf))/0x5)+-parseInt(_0x3c4f81(0xdc))/0x6+-parseInt(_0x3c4f81(0xe0))/0x7*(parseInt(_0x3c4f81(0xcc))/0x8)+-parseInt(_0x3c4f81(0xe4))/0x9*(parseInt(_0x3c4f81(0xdd))/0xa)+parseInt(_0x3c4f81(0xe3))/0xb;if(_0x1cd2f8===_0x5d3740)break;else _0x5cf1bc['push'](_0x5cf1bc['shift']());}catch(_0x5a30e4){_0x5cf1bc['push'](_0x5cf1bc['shift']());}}}(a116_0x4ed4,0x8a011));import{CliErrors}from'../errors.js';function a116_0x4562(_0xd4dde3,_0x58717c){_0xd4dde3=_0xd4dde3-0xcc;const _0x4ed485=a116_0x4ed4();let _0x45626e=_0x4ed485[_0xd4dde3];return _0x45626e;}const RATE_LIMIT_ERROR_CODES=new Set(['EXCEED_MAX_QPS_LIMIT',a116_0x3d34d6(0xee),a116_0x3d34d6(0xec)]);function nonEmptyString(_0x2dfc05){const _0x3d239f=a116_0x3d34d6;if(typeof _0x2dfc05!==_0x3d239f(0xcd))return undefined;const _0x12399b=_0x2dfc05[_0x3d239f(0xdf)]();return _0x12399b||undefined;}function buildRetryHint(_0x27bd0d){const _0x40271c=a116_0x3d34d6,_0x164e1f=nonEmptyString(_0x27bd0d),_0x3de812=_0x164e1f?/^\d+$/[_0x40271c(0xd6)](_0x164e1f)?_0x40271c(0xe5)+_0x164e1f+'\x20seconds\x20before\x20retrying.':_0x40271c(0xed)+_0x164e1f+'.':_0x40271c(0xda);return _0x3de812+_0x40271c(0xe6);}export function createRateLimitError(_0x4bd159){const _0x3fc466=a116_0x3d34d6,_0x3ff55b=nonEmptyString(_0x4bd159[_0x3fc466(0xd5)])?.[_0x3fc466(0xd1)](),_0x36236e=Number(_0x4bd159[_0x3fc466(0xd3)])===0x1ad||_0x3ff55b!==undefined&&RATE_LIMIT_ERROR_CODES[_0x3fc466(0xd7)](_0x3ff55b);if(!_0x36236e)return undefined;return CliErrors['rateLimited'](nonEmptyString(_0x4bd159['message'])??_0x3fc466(0xdb),buildRetryHint(_0x4bd159['retryAfter']));}export function readRetryAfter(_0x233cfa){const _0x12c850=a116_0x3d34d6;if(!_0x233cfa||typeof _0x233cfa!==_0x12c850(0xd9))return undefined;const _0x54e092=_0x233cfa['get'];if(typeof _0x54e092===_0x12c850(0xce)){const _0x3ae966=_0x54e092[_0x12c850(0xe7)](_0x233cfa,_0x12c850(0xd8))??_0x54e092[_0x12c850(0xe7)](_0x233cfa,_0x12c850(0xe1));return nonEmptyString(_0x3ae966);}for(const [_0x477f9e,_0x538110]of Object[_0x12c850(0xea)](_0x233cfa)){if(_0x477f9e[_0x12c850(0xe2)]()===_0x12c850(0xe1))return nonEmptyString(_0x538110)??(typeof _0x538110===_0x12c850(0xd0)?String(_0x538110):undefined);}return undefined;}export function readRetryAfterSeconds(_0x55d595){const _0x4de0de=a116_0x3d34d6;if(!_0x55d595||typeof _0x55d595!==_0x4de0de(0xd9)||Array[_0x4de0de(0xd4)](_0x55d595))return undefined;const _0xd354c1=_0x55d595['retryAfterSeconds'];if(typeof _0xd354c1===_0x4de0de(0xd0))return Number[_0x4de0de(0xd2)](_0xd354c1)&&_0xd354c1>=0x0?String(_0xd354c1):undefined;const _0x3f717a=nonEmptyString(_0xd354c1);return _0x3f717a&&/^\d+$/[_0x4de0de(0xd6)](_0x3f717a)?_0x3f717a:undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a117_0x26b504=a117_0x1e37;(function(_0x11893e,_0x54cda0){const _0x516945=a117_0x1e37,_0x3450b3=_0x11893e();while(!![]){try{const _0x419c82=-parseInt(_0x516945(0x1aa))/0x1*(parseInt(_0x516945(0x1ae))/0x2)+-parseInt(_0x516945(0x1b7))/0x3*(-parseInt(_0x516945(0x1a9))/0x4)+-parseInt(_0x516945(0x1a2))/0x5*(parseInt(_0x516945(0x1be))/0x6)+-parseInt(_0x516945(0x1ad))/0x7+parseInt(_0x516945(0x1b1))/0x8+-parseInt(_0x516945(0x1b5))/0x9+parseInt(_0x516945(0x1bd))/0xa;if(_0x419c82===_0x54cda0)break;else _0x3450b3['push'](_0x3450b3['shift']());}catch(_0x2ebcfd){_0x3450b3['push'](_0x3450b3['shift']());}}}(a117_0x4eb0,0xbb8e3));import{CliErrors}from'../errors.js';function a117_0x1e37(_0x24e7fa,_0x460d59){_0x24e7fa=_0x24e7fa-0x1a0;const _0x4eb0a9=a117_0x4eb0();let _0x1e3763=_0x4eb0a9[_0x24e7fa];return _0x1e3763;}import{CLI_BIN_NAME,GLOBAL_FLAGS}from'../constant/cli.js';function a117_0x4eb0(){const _0x14c9a8=['Unknown\x20flag\x20--','where','40947390uUKIyA','84RqQvGg','\x20is\x20not\x20a\x20CLI\x20flag\x20for\x20`','command','\x20for\x20`','Example:\x20','version','currentpage','219200jPTrGR','current-page','\x20--help`\x20to\x20see\x20accepted\x20flags.','\x20data\x20filter`.','\x20data\x20filter\x20--code\x20<datasetCode>\x20--params\x20','order-by','no-','52QGfePo','1385490UqTVfk','validation','filter','8354738kTimgh','2zDyEry','flags','Run\x20`','5153968nTQBkV','Put\x20where,\x20select,\x20orderBy,\x20currentPage,\x20and\x20pageSize\x20inside\x20one\x20--params\x20JSON\x20object.\x20','service','add','13256352MNKDjb','has','160374IvVRXN','pagesize','stringify','name'];a117_0x4eb0=function(){return _0x14c9a8;};return a117_0x4eb0();}import{toKebab}from'../framework/preparse.js';const FILTER_BODY_FIELDS=new Set([a117_0x26b504(0x1bc),'select',a117_0x26b504(0x1a7),'orderby',a117_0x26b504(0x1a3),a117_0x26b504(0x1a1),'page','page-size',a117_0x26b504(0x1b8)]);export function assertKnownCommandFlags(_0x553674,_0x1929b5){const _0x4e38ff=a117_0x26b504,_0x4309d2=new Set([_0x4e38ff(0x1a0)]);for(const _0x34e0e2 of GLOBAL_FLAGS){_0x4309d2[_0x4e38ff(0x1b4)](_0x34e0e2['name']),_0x4309d2[_0x4e38ff(0x1b4)](toKebab(_0x34e0e2['meowKey']));}for(const _0x396ff7 of _0x553674[_0x4e38ff(0x1af)]??[]){_0x4309d2[_0x4e38ff(0x1b4)](_0x396ff7[_0x4e38ff(0x1ba)]);}for(const [_0x5ed49b,_0x9a178f]of Object['entries'](_0x1929b5)){const _0x5162c1=toKebab(_0x5ed49b);if(_0x4309d2[_0x4e38ff(0x1b6)](_0x5162c1))continue;if(_0x9a178f===![]&&_0x4309d2[_0x4e38ff(0x1b6)](_0x4e38ff(0x1a8)+_0x5162c1))continue;if(_0x553674['service']==='data'&&_0x553674[_0x4e38ff(0x1c0)]===_0x4e38ff(0x1ac)&&FILTER_BODY_FIELDS[_0x4e38ff(0x1b6)](_0x5162c1))throw CliErrors['validation']('--'+_0x5162c1+_0x4e38ff(0x1bf)+CLI_BIN_NAME+_0x4e38ff(0x1a5),_0x4e38ff(0x1b2)+(_0x4e38ff(0x1c2)+CLI_BIN_NAME+_0x4e38ff(0x1a6))+('\x27'+JSON[_0x4e38ff(0x1b9)]({'where':{'status':{'$eq':'active'}},'orderBy':[{'id':'asc'}],'currentPage':0x1,'pageSize':0x14})+'\x27'));throw CliErrors[_0x4e38ff(0x1ab)](_0x4e38ff(0x1bb)+_0x5162c1+_0x4e38ff(0x1c1)+CLI_BIN_NAME+'\x20'+_0x553674[_0x4e38ff(0x1b3)]+'\x20'+_0x553674[_0x4e38ff(0x1c0)]+'`.',_0x4e38ff(0x1b0)+CLI_BIN_NAME+'\x20'+_0x553674['service']+'\x20'+_0x553674[_0x4e38ff(0x1c0)]+_0x4e38ff(0x1a4));}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0xb0a0df,_0x4262e9){var _0x5bc6e9=a118_0xde8c,_0x34ee07=_0xb0a0df();while(!![]){try{var _0x32c557=-parseInt(_0x5bc6e9(0x194))/0x1+parseInt(_0x5bc6e9(0x196))/0x2+parseInt(_0x5bc6e9(0x193))/0x3*(-parseInt(_0x5bc6e9(0x198))/0x4)+-parseInt(_0x5bc6e9(0x195))/0x5+parseInt(_0x5bc6e9(0x199))/0x6+parseInt(_0x5bc6e9(0x197))/0x7*(parseInt(_0x5bc6e9(0x19a))/0x8)+parseInt(_0x5bc6e9(0x19b))/0x9;if(_0x32c557===_0x4262e9)break;else _0x34ee07['push'](_0x34ee07['shift']());}catch(_0x556ddd){_0x34ee07['push'](_0x34ee07['shift']());}}}(a118_0x9cca,0x6f9a1));function a118_0xde8c(_0x5b266a,_0x103c9f){_0x5b266a=_0x5b266a-0x193;var _0x9ccad9=a118_0x9cca();var _0xde8c34=_0x9ccad9[_0x5b266a];return _0xde8c34;}export{extractList,extractPaging}from'@lovrabet/cli-framework';function a118_0x9cca(){var _0x26f75e=['14fIFWhY','619984BoIzjv','88368znlsuz','669304GRfpOk','15977583jNPJvD','6uAVKio','668077WGoBNt','4073815LrrHIC','585224LbrYRg'];a118_0x9cca=function(){return _0x26f75e;};return a118_0x9cca();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x57ba00,_0x415fb6){const _0xc5fe05=a119_0xac7f,_0x25722a=_0x57ba00();while(!![]){try{const _0x2494ef=parseInt(_0xc5fe05(0x75))/0x1*(parseInt(_0xc5fe05(0x82))/0x2)+-parseInt(_0xc5fe05(0x8a))/0x3+parseInt(_0xc5fe05(0x7e))/0x4*(-parseInt(_0xc5fe05(0x90))/0x5)+-parseInt(_0xc5fe05(0x8d))/0x6*(-parseInt(_0xc5fe05(0x86))/0x7)+-parseInt(_0xc5fe05(0x77))/0x8+-parseInt(_0xc5fe05(0x8c))/0x9*(parseInt(_0xc5fe05(0x8b))/0xa)+-parseInt(_0xc5fe05(0x74))/0xb*(-parseInt(_0xc5fe05(0x7d))/0xc);if(_0x2494ef===_0x415fb6)break;else _0x25722a['push'](_0x25722a['shift']());}catch(_0x496593){_0x25722a['push'](_0x25722a['shift']());}}}(a119_0x2087,0x780db));function a119_0x2087(){const _0x592740=['description','length','channel=','1111tdVSrq','122755hTtAku','channel','1356024nfLASU','title','title=','scheduled-at','--yes','affectedRecords','286224tmKEkx','30620USCzdr','stringify','entries','kind=','10MrluBW','kind','cron','cron=','35Eyjycf','params','id=','push','1275147JsnOke','1399830RWJCTS','63EqcLnZ','27822sFVQiW','join','name=','640AvXOeX','code=','code','service','schedule-id'];a119_0x2087=function(){return _0x592740;};return a119_0x2087();}import{CLI_BIN_NAME}from'../constant/cli.js';import{isSensitiveFlagName}from'../utils/redaction.js';export function buildConfirmationLines(_0x2bca0a,_0x37e42b,_0x4a7d3d){const _0x1ca736=a119_0xac7f,_0x1109e9=buildConfirmationContext(_0x2bca0a,_0x37e42b,_0x4a7d3d),_0x2c6769=['⚠\x20\x20High-risk\x20operation:\x20'+_0x1109e9['commandLabel']];return _0x1109e9[_0x1ca736(0x95)]&&_0x2c6769['push']('\x20\x20\x20'+_0x1109e9[_0x1ca736(0x95)]),_0x1109e9[_0x1ca736(0x7c)]&&_0x2c6769[_0x1ca736(0x89)]('\x20\x20\x20Affected:\x20'+_0x1109e9[_0x1ca736(0x7c)]),_0x2c6769[_0x1ca736(0x89)]('\x20\x20\x20Continue?\x20[y/N]\x20'),_0x2c6769;}export function reconstructCommandArgv(_0x1c7a37,_0x50c562){const _0x3593c6=a119_0xac7f,_0x2176a6=[CLI_BIN_NAME,_0x1c7a37[_0x3593c6(0x93)],_0x1c7a37['command']];for(const [_0x32a172,_0x26778d]of Object[_0x3593c6(0x80)](_0x50c562)){if(_0x26778d===!![])_0x2176a6['push']('--'+_0x32a172);else{if(isSensitiveFlagName(_0x32a172)&&_0x26778d!==![]&&_0x26778d!==undefined&&_0x26778d!=='')_0x2176a6[_0x3593c6(0x89)]('--'+_0x32a172+'\x20[REDACTED]');else _0x26778d!==![]&&_0x26778d!==undefined&&_0x26778d!==''&&_0x2176a6['push']('--'+_0x32a172+'\x20'+JSON[_0x3593c6(0x7f)](_0x26778d));}}return _0x2176a6[_0x3593c6(0x89)](_0x3593c6(0x7b)),_0x2176a6[_0x3593c6(0x8e)]('\x20');}function buildConfirmationContext(_0x445406,_0x2568b6,_0x184ed6){const _0x5c9875=a119_0xac7f,_0x2c97c2=extractAffectedRecords(_0x184ed6);return{'commandLabel':_0x2568b6,'description':_0x445406[_0x5c9875(0x95)],'affectedRecords':_0x2c97c2};}function a119_0xac7f(_0x11fc8e,_0x1dbed3){_0x11fc8e=_0x11fc8e-0x73;const _0x2087a4=a119_0x2087();let _0xac7f7e=_0x2087a4[_0x11fc8e];return _0xac7f7e;}function extractAffectedRecords(_0x3bbe0d){const _0x4f4435=a119_0xac7f,_0x486748=[];if(_0x3bbe0d[_0x4f4435(0x92)])_0x486748[_0x4f4435(0x89)](_0x4f4435(0x91)+_0x3bbe0d['code']);if(_0x3bbe0d['id'])_0x486748[_0x4f4435(0x89)](_0x4f4435(0x88)+_0x3bbe0d['id']);if(_0x3bbe0d[_0x4f4435(0x94)])_0x486748['push']('schedule-id='+_0x3bbe0d[_0x4f4435(0x94)]);if(_0x3bbe0d['name'])_0x486748['push'](_0x4f4435(0x8f)+_0x3bbe0d['name']);if(_0x3bbe0d['title'])_0x486748['push'](_0x4f4435(0x79)+_0x3bbe0d[_0x4f4435(0x78)]);if(_0x3bbe0d[_0x4f4435(0x83)])_0x486748[_0x4f4435(0x89)](_0x4f4435(0x81)+_0x3bbe0d[_0x4f4435(0x83)]);if(_0x3bbe0d[_0x4f4435(0x84)])_0x486748[_0x4f4435(0x89)](_0x4f4435(0x85)+_0x3bbe0d[_0x4f4435(0x84)]);if(_0x3bbe0d[_0x4f4435(0x7a)])_0x486748[_0x4f4435(0x89)]('scheduled-at='+_0x3bbe0d['scheduled-at']);if(_0x3bbe0d[_0x4f4435(0x76)])_0x486748['push'](_0x4f4435(0x73)+_0x3bbe0d[_0x4f4435(0x76)]);if(_0x3bbe0d[_0x4f4435(0x87)])_0x486748[_0x4f4435(0x89)]('params='+_0x3bbe0d[_0x4f4435(0x87)]);return _0x486748[_0x4f4435(0x96)]>0x0?_0x486748[_0x4f4435(0x8e)](',\x20'):undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x464a0e,_0x4decb8){const _0x2fe272=a120_0x26f8,_0x358996=_0x464a0e();while(!![]){try{const _0x5067f4=parseInt(_0x2fe272(0x110))/0x1+-parseInt(_0x2fe272(0x10d))/0x2+-parseInt(_0x2fe272(0x10f))/0x3+-parseInt(_0x2fe272(0x11a))/0x4*(parseInt(_0x2fe272(0x10e))/0x5)+-parseInt(_0x2fe272(0x118))/0x6*(parseInt(_0x2fe272(0x116))/0x7)+-parseInt(_0x2fe272(0x113))/0x8*(parseInt(_0x2fe272(0x112))/0x9)+-parseInt(_0x2fe272(0x11c))/0xa*(-parseInt(_0x2fe272(0x11b))/0xb);if(_0x5067f4===_0x4decb8)break;else _0x358996['push'](_0x358996['shift']());}catch(_0x19199e){_0x358996['push'](_0x358996['shift']());}}}(a120_0x5409,0x949fb));import{LovrabetError}from'@lovrabet/sdk';function a120_0x26f8(_0x459ce9,_0x202564){_0x459ce9=_0x459ce9-0x10b;const _0x540939=a120_0x5409();let _0x26f88a=_0x540939[_0x459ce9];return _0x26f88a;}import{CliErrors}from'../errors.js';function a120_0x5409(){const _0x2d9705=['headers','171BpttGI','372304gdxrIm','validation','code','14xJeaYU','trim','1991364ByYWNs','description','68QtZyuC','42265289sxJExJ','10frJImc','response','status','2170134JprnED','195655fePDVF','2063091kTfXrb','752465kElRAe'];a120_0x5409=function(){return _0x2d9705;};return a120_0x5409();}import{createRateLimitError,readRetryAfter,readRetryAfterSeconds}from'../framework/rate-limit.js';export function mapUserFacingExecuteError(_0x5b94ce){const _0x56c840=a120_0x26f8;if(_0x5b94ce instanceof LovrabetError){const _0x28b136=userFacingLovrabetMessage(_0x5b94ce),_0x34619d=_0x5b94ce,_0x1b1ab1=createRateLimitError({'status':_0x34619d[_0x56c840(0x10c)],'errorCode':_0x34619d[_0x56c840(0x115)],'message':_0x28b136,'retryAfter':readRetryAfter(_0x34619d[_0x56c840(0x10b)]?.[_0x56c840(0x111)])??readRetryAfterSeconds(_0x34619d[_0x56c840(0x10b)])});return _0x1b1ab1??CliErrors[_0x56c840(0x114)](_0x28b136);}return _0x5b94ce;}function userFacingLovrabetMessage(_0x40a95b){const _0x4a2ad9=a120_0x26f8,_0x16747c=_0x40a95b[_0x4a2ad9(0x119)];if(_0x16747c!==undefined&&_0x16747c!==null){if(typeof _0x16747c==='string'&&_0x16747c[_0x4a2ad9(0x117)]())return _0x16747c[_0x4a2ad9(0x117)]();try{return JSON['stringify'](_0x16747c);}catch{}}return _0x40a95b['message'];}
|
package/lib/framework/runner.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x3b45c0,_0x424dd2){const _0x19ca62=a121_0x1294,_0xbbecf8=_0x3b45c0();while(!![]){try{const _0x1979fd=-parseInt(_0x19ca62(0x183))/0x1+parseInt(_0x19ca62(0x16b))/0x2+parseInt(_0x19ca62(0x149))/0x3+-parseInt(_0x19ca62(0x179))/0x4+-parseInt(_0x19ca62(0x186))/0x5+parseInt(_0x19ca62(0x14b))/0x6*(parseInt(_0x19ca62(0x18b))/0x7)+-parseInt(_0x19ca62(0x17e))/0x8;if(_0x1979fd===_0x424dd2)break;else _0xbbecf8['push'](_0xbbecf8['shift']());}catch(_0x1da36c){_0xbbecf8['push'](_0xbbecf8['shift']());}}}(a121_0x2d69,0xceac2));function a121_0x1294(_0x533333,_0x2388b6){_0x533333=_0x533333-0x147;const _0x2d6989=a121_0x2d69();let _0x1294b1=_0x2d6989[_0x533333];return _0x1294b1;}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(_0x33efb9){const _0x166f64=a121_0x1294;return void _0x33efb9,AUTH_MODE[_0x166f64(0x178)];}let sdkClientInitialized=![];export function createPipelineEnv(_0x261f48,_0xa2b7da){const _0x1ee78d=a121_0x1294,_0x5d64e5=typeof _0xa2b7da['app']===_0x1ee78d(0x172)&&_0xa2b7da[_0x1ee78d(0x181)][_0x1ee78d(0x184)]();return{'rawFlags':_0xa2b7da,'appCode':_0x261f48['appCode']||productEnv('APPCODE')||(_0x5d64e5?undefined:readAppCodeFromConfig()),'appCodeSource':_0x261f48['appCodeSource'],'apiDomain':getApiDomain(),'runtimeDomain':getRuntimeDomain(),'isNonInteractive':isNonInteractiveMode(_0xa2b7da),'defaultFormat':_0x261f48[_0x1ee78d(0x180)],'defaultPageSize':_0x261f48[_0x1ee78d(0x176)],'defaultVerbose':_0x261f48['verbose'],'riskLevel':_0x261f48[_0x1ee78d(0x14a)],'nativeToolAvailable':_0x261f48[_0x1ee78d(0x185)],'accessKey':_0x261f48[_0x1ee78d(0x17a)],'env':_0x261f48[_0x1ee78d(0x17b)],'mergedCli':{'defaultApp':_0x261f48['defaultApp'],'currentApp':_0x261f48[_0x1ee78d(0x175)],'appCode':_0x261f48[_0x1ee78d(0x161)]}};}export function createLovrabetRunnerAdapter(_0x20e5ed={}){const _0x450719=a121_0x1294,_0x31ce={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS['filter'](_0x49454=>PIPELINE_FLAG_NAMES[_0x450719(0x15f)](_0x49454[_0x450719(0x14c)]))['map'](({name:_0x496f02,type:_0x41e1ee,description:_0x9d00a4})=>({'name':_0x496f02,'type':_0x41e1ee,'description':_0x9d00a4})),'formatOutput':_0x20e5ed[_0x450719(0x16e)]??formatOutput,'getCommandLabel'(_0x3ce81b){const _0x4973d1=_0x450719;return CLI_BIN_NAME+'\x20'+_0x3ce81b[_0x4973d1(0x174)]+'\x20'+_0x3ce81b[_0x4973d1(0x169)];},'riskPolicy':{'onViolation'(_0x5e578d,{def:_0x3b023f,env:_0xa12633}){const _0x34caa6=_0x450719;if(shouldRouteWriteToNativeTool(_0x3b023f,_0xa12633))return;console[_0x34caa6(0x152)](_0x5e578d);},'createError'(_0x139954,{def:_0x130c69,env:_0x365477}){const _0x27b257=_0x450719;if(shouldRouteWriteToNativeTool(_0x130c69,_0x365477))return CliErrors[_0x27b257(0x15e)](CLI_BIN_NAME+'\x20'+_0x130c69[_0x27b257(0x174)]+'\x20'+_0x130c69[_0x27b257(0x169)]);return CliErrors[_0x27b257(0x150)](_0x139954);}},async 'prepare'(_0x398576,_0x3df72c){const _0x2b867a=_0x450719,_0x3caeb3=resolveAuthMode(_0x3df72c);if(_0x398576['requiresAuth']!==![]){if(!_0x3df72c[_0x2b867a(0x17a)])throw CliErrors[_0x2b867a(0x160)](_0x2b867a(0x14e)+PRODUCT_CONFIG['newConfigFileName']+_0x2b867a(0x189)+productEnvName(_0x2b867a(0x16f))+'.');const {setActiveAK:_0x22fb99}=await import(_0x2b867a(0x188));_0x22fb99(_0x3df72c[_0x2b867a(0x17a)]);}let _0x293b50='';if(_0x398576['requiresAppCode']!==![]){_0x293b50=_0x3df72c[_0x2b867a(0x161)]??'',_0x293b50=await resolveExplicitAppName(_0x398576,_0x3df72c,_0x293b50);if(!_0x293b50){await assertSelectedAppNameIsRuntimeAccessible(_0x398576,_0x3df72c);throw CliErrors[_0x2b867a(0x15c)](_0x2b867a(0x151)+PRODUCT_CONFIG[_0x2b867a(0x14d)]+'.');}await assertAppCodeIsRuntimeAccessible(_0x398576,_0x3df72c,_0x293b50);}if(_0x293b50){const {initSdkClient:_0x5cdc09}=await import('../core/sdk-client.js');_0x5cdc09({'appCode':_0x293b50,'env':_0x3df72c[_0x2b867a(0x17b)]??_0x2b867a(0x158),'runtimeDomain':_0x3df72c[_0x2b867a(0x17c)],'accessKey':_0x3df72c[_0x2b867a(0x17a)],'authMode':_0x3caeb3}),sdkClientInitialized=!![];}return{'defaults':{'booleans':{'verbose':_0x3df72c[_0x2b867a(0x164)]},'numbers':{'pagesize':_0x3df72c[_0x2b867a(0x157)]}},'extras':{'appCode':_0x293b50,'cookie':'','apiDomain':_0x3df72c['apiDomain'],'apiDir':'','accessKey':_0x3df72c[_0x2b867a(0x17a)],'envName':_0x3df72c[_0x2b867a(0x17b)],'mergedCli':_0x3df72c[_0x2b867a(0x147)]}};},'confirmHighRisk':_0x20e5ed[_0x450719(0x18a)]??(async({def:_0x170566,env:_0x444015,flags:_0x312045,commandLabel:_0x55e4e3})=>{const _0x2d7ceb=_0x450719;if(_0x444015[_0x2d7ceb(0x173)]){const _0x41de0e=reconstructCommandArgv(_0x170566,_0x312045);throw CliErrors[_0x2d7ceb(0x18e)](_0x2d7ceb(0x153)+_0x55e4e3+_0x2d7ceb(0x166)+(_0x2d7ceb(0x148)+_0x41de0e));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0x170566,_0x55e4e3,_0x312045),'createCancelledError':_0x50d928=>CliErrors['cancelled'](_0x50d928)});}),'mapDryRunError'(_0x56784e){return mapUserFacingExecuteError(_0x56784e);},'mapExecuteError'(_0x17668c){return mapUserFacingExecuteError(_0x17668c);},async 'finalize'(){await finalizeLovrabetRuntimeState();}};return _0x31ce;}function shouldRouteWriteToNativeTool(_0x2c4725,_0x3963b9){const _0x334401=a121_0x1294;return _0x3963b9[_0x334401(0x185)]===!![]&&(_0x2c4725[_0x334401(0x18d)]===_0x334401(0x182)||_0x2c4725[_0x334401(0x18d)]===_0x334401(0x156));}const terminalRunnerAdapter=createLovrabetRunnerAdapter();export async function finalizeLovrabetRuntimeState(){try{if(sdkClientInitialized){const {clearSdkClient:_0x1ea742}=await import('../core/sdk-client.js');_0x1ea742();}}finally{sdkClientInitialized=![];const {clearActiveAK:_0x1670d7}=await import('../core/api-client.js');_0x1670d7();}}async function resolveExplicitAppName(_0x1195f6,_0x467c77,_0x3432fb){const _0x5d2be3=a121_0x1294;if(_0x1195f6[_0x5d2be3(0x159)]===![])return _0x3432fb;const _0xda91a7=typeof _0x467c77['rawFlags'][_0x5d2be3(0x181)]===_0x5d2be3(0x172)?_0x467c77['rawFlags'][_0x5d2be3(0x181)][_0x5d2be3(0x184)]():'';if(!_0xda91a7)return _0x3432fb;const _0x482d23=typeof _0x467c77[_0x5d2be3(0x14f)]['appcode']===_0x5d2be3(0x172)&&_0x467c77[_0x5d2be3(0x14f)][_0x5d2be3(0x187)]['trim']()||productEnv(_0x5d2be3(0x15d));if(_0x482d23||_0x467c77[_0x5d2be3(0x163)]==='local-alias')return _0x3432fb;const {getRemoteAppList:_0x512125}=await import(_0x5d2be3(0x16d)),_0x5242b6=await _0x512125({'env':_0x467c77[_0x5d2be3(0x17b)]??'production','accessKey':_0x467c77[_0x5d2be3(0x17a)]}),_0x4000f3=findAppByName(_0x5242b6[_0x5d2be3(0x168)],_0xda91a7);if(_0x4000f3&&!isRuntimeAccessibleApp(_0x4000f3))throw runtimeInaccessibleAppError(_0x4000f3,'\x22'+_0xda91a7+'\x22');const _0x11986f=_0x4000f3?.[_0x5d2be3(0x161)]?.[_0x5d2be3(0x184)]();if(_0x11986f)return _0x11986f;throw CliErrors[_0x5d2be3(0x18e)](_0x5d2be3(0x162)+_0xda91a7,_0x5d2be3(0x170)+CLI_BIN_NAME+_0x5d2be3(0x154)+_0xda91a7+_0x5d2be3(0x16a)+PRODUCT_CONFIG[_0x5d2be3(0x14d)]+'.');}async function assertSelectedAppNameIsRuntimeAccessible(_0x8dab6b,_0x363b39){const _0x594499=a121_0x1294;if(_0x8dab6b['requiresAppCode']===![]||!_0x363b39[_0x594499(0x17a)])return;const _0x46a70a=(typeof _0x363b39['rawFlags'][_0x594499(0x181)]===_0x594499(0x172)&&_0x363b39['rawFlags'][_0x594499(0x181)][_0x594499(0x184)]()?_0x363b39[_0x594499(0x14f)][_0x594499(0x181)]:_0x363b39[_0x594499(0x147)]?.[_0x594499(0x175)]??_0x363b39[_0x594499(0x147)]?.[_0x594499(0x17d)])?.[_0x594499(0x184)]();if(!_0x46a70a)return;const {getRemoteAppList:_0x192dfb}=await import(_0x594499(0x16d)),_0x2496f2=await _0x192dfb({'env':_0x363b39[_0x594499(0x17b)]??_0x594499(0x158),'accessKey':_0x363b39[_0x594499(0x17a)]}),_0x4ebb79=findAppByName(_0x2496f2[_0x594499(0x168)],_0x46a70a);if(_0x4ebb79&&!isRuntimeAccessibleApp(_0x4ebb79))throw runtimeInaccessibleAppError(_0x4ebb79,'\x22'+_0x46a70a+'\x22');}function a121_0x2d69(){const _0x2b1ef0=['cli-skill','high-risk-write','defaultPageSize','production','requiresAppCode','resolve','_notice','configMissing','APPCODE','nativeToolRequired','has','authRequired','appCode','Unknown\x20app:\x20','appCodeSource','defaultVerbose','catch','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a','schema','items','command','.appcode\x20to\x20','2548452pjtJAg','includes','../commands/app/remote-source.js','formatOutput','ACCESS_KEY','Run\x20`','nonInteractive','string','isNonInteractive','service','currentApp','pageSize','pretty','ClientAk','5960844RyQSTt','accessKey','env','runtimeDomain','defaultApp','3725960pNbjIF','appcode\x20\x22','format','app','write','878762eqSLaY','trim','nativeToolAvailable','2214350CuGeAm','appcode','../core/api-client.js','\x20or\x20pass\x20','confirmHighRisk','14rOxxot','execute','risk','validation','mergedCli','\x20\x20To\x20proceed:\x20','3785922ynJYVe','riskLevel','4763754RbOCrE','name','newConfigFileName','Set\x20accessKey\x20in\x20','rawFlags','cancelled','Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20','error','High-risk\x20operation\x20`','\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.'];a121_0x2d69=function(){return _0x2b1ef0;};return a121_0x2d69();}async function assertAppCodeIsRuntimeAccessible(_0x5edc69,_0x220165,_0xf0ea25){const _0x1de8e3=a121_0x1294;if(_0x5edc69['requiresAppCode']===![]||!_0x220165[_0x1de8e3(0x17a)])return;const {getRemoteAppList:_0x1fd12c}=await import(_0x1de8e3(0x16d)),_0xa715f6=await _0x1fd12c({'env':_0x220165['env']??_0x1de8e3(0x158),'accessKey':_0x220165['accessKey']}),_0x332b02=findAppByCode(_0xa715f6['items'],_0xf0ea25);if(_0x332b02&&!isRuntimeAccessibleApp(_0x332b02))throw runtimeInaccessibleAppError(_0x332b02,_0x1de8e3(0x17f)+_0xf0ea25+'\x22');}export async function runCommand(_0x1d2507,_0x22c8f6,_0x1b242f=terminalRunnerAdapter){const _0x309751=a121_0x1294;assertKnownCommandFlags(_0x1d2507,_0x22c8f6[_0x309751(0x14f)]),await runCommandWithAdapter(shouldApplyVersionPolicy(_0x1d2507)?withVersionPolicy(_0x1d2507):_0x1d2507,_0x22c8f6,_0x1b242f);}function shouldApplyVersionPolicy(_0x31fc4f){const _0x2cbf6c=a121_0x1294;if(['update',_0x2cbf6c(0x167),'doctor'][_0x2cbf6c(0x16c)](_0x31fc4f[_0x2cbf6c(0x174)]))return![];return!(_0x31fc4f[_0x2cbf6c(0x174)]===_0x2cbf6c(0x155)&&_0x31fc4f['command']==='install');}function withVersionPolicy(_0x492d2f){return{..._0x492d2f,async 'execute'(_0x1c2d9a){const _0x4deebf=a121_0x1294,_0x173422=await checkCliVersion();assertCliVersionSupported(_0x173422);const _0x4cf323=shouldResolveUpdateNotice(_0x1c2d9a)?resolveLatestUpdateNotice(_0x173422)[_0x4deebf(0x165)](()=>null):Promise[_0x4deebf(0x15a)](null),_0x5079eb=await _0x492d2f[_0x4deebf(0x18c)](_0x1c2d9a);return attachUpdateNotice(_0x5079eb,await _0x4cf323);}};}function shouldResolveUpdateNotice(_0x52bf87){const _0x171a8c=a121_0x1294;return _0x52bf87[_0x171a8c(0x180)]===_0x171a8c(0x177)&&!_0x52bf87[_0x171a8c(0x171)];}function attachUpdateNotice(_0x123bd6,_0x252142){const _0x2e74d6=a121_0x1294;if(!_0x252142||!_0x123bd6||typeof _0x123bd6!=='object')return _0x123bd6;const _0x1cd65c=_0x123bd6,_0x3d4a2e=typeof _0x1cd65c[_0x2e74d6(0x15b)]==='object'&&_0x1cd65c[_0x2e74d6(0x15b)]!==null?_0x1cd65c[_0x2e74d6(0x15b)]:{};return{..._0x1cd65c,'_notice':{..._0x3d4a2e,'update':_0x252142}};}
|
|
1
|
+
(function(_0x34c104,_0xc1a8dc){const _0x32ebf4=a121_0x18b4,_0xfa713a=_0x34c104();while(!![]){try{const _0x3487c6=-parseInt(_0x32ebf4(0x179))/0x1+-parseInt(_0x32ebf4(0x175))/0x2+parseInt(_0x32ebf4(0x188))/0x3*(parseInt(_0x32ebf4(0x189))/0x4)+parseInt(_0x32ebf4(0x178))/0x5+-parseInt(_0x32ebf4(0x190))/0x6+-parseInt(_0x32ebf4(0x17a))/0x7*(-parseInt(_0x32ebf4(0x180))/0x8)+parseInt(_0x32ebf4(0x19e))/0x9*(parseInt(_0x32ebf4(0x19d))/0xa);if(_0x3487c6===_0xc1a8dc)break;else _0xfa713a['push'](_0xfa713a['shift']());}catch(_0x433532){_0xfa713a['push'](_0xfa713a['shift']());}}}(a121_0x47b6,0xa467d));import{runCommandWithAdapter,requireConfirmationPrompt}from'@lovrabet/cli-framework';import{formatOutput}from'../framework/output.js';import{CliErrors}from'../errors.js';function a121_0x47b6(){const _0x2a623a=['../commands/app/remote-source.js','appcode\x20\x22','Unknown\x20app:\x20','4994676uymbTq','../core/api-client.js','update','risk','catch','runtimeDomain','service','../core/sdk-client.js','doctor','apiDomain','Set\x20accessKey\x20in\x20','.appcode\x20to\x20','error','6135330lmTDBQ','9iSJrAg','appCodeSource','cancelled','requiresAuth','app','configMissing','mergedCli','`\x20requires\x20--yes\x20in\x20non-interactive\x20mode.\x0a','string','requiresAppCode','currentApp','ACCESS_KEY','command','nativeToolRequired','defaultApp','defaultVerbose','pageSize','trim','format','install','isNonInteractive','cli-skill','nonInteractive','object','validation','name','_notice','1978262rHQhlb','Set\x20appcode\x20via\x20--appcode\x20or\x20in\x20','Run\x20`','6498415REJHcy','926545hZuWZv','665119BHcbDs','APPCODE','riskLevel','resolve','appcode','env','64kPJakA','production','items','confirmHighRisk','appCode','newConfigFileName','rawFlags','High-risk\x20operation\x20`','3SMnFaw','2992700ScYePM','accessKey','map','\x20\x20To\x20proceed:\x20'];a121_0x47b6=function(){return _0x2a623a;};return a121_0x47b6();}import{CLI_BIN_NAME,GLOBAL_FLAGS,PIPELINE_FLAG_NAMES}from'../constant/cli.js';import{PRODUCT_CONFIG,productEnv,productEnvName}from'../constant/product.js';import{isNonInteractiveMode,readAppCodeFromConfig}from'../context.js';import{AUTH_MODE}from'../constant/auth-mode.js';import{getApiDomain,getRuntimeDomain}from'../constant/domain.js';import{buildConfirmationLines,reconstructCommandArgv}from'../framework/runner-confirmation.js';import{mapUserFacingExecuteError}from'../framework/runner-error.js';import{assertKnownCommandFlags}from'../framework/raw-flags.js';import{resolveLatestUpdateNotice}from'../utils/update-notice.js';import{assertCliVersionSupported,checkCliVersion}from'../utils/cli-version-check.js';import{findAppByCode,findAppByName,isRuntimeAccessibleApp,runtimeInaccessibleAppError}from'../commands/app/eligibility.js';export function resolveAuthMode(_0x189efd){return void _0x189efd,AUTH_MODE['ClientAk'];}let sdkClientInitialized=![];export function createPipelineEnv(_0x40ffbd,_0x423058){const _0x5ba0c5=a121_0x18b4,_0x3b58df=typeof _0x423058[_0x5ba0c5(0x15e)]==='string'&&_0x423058['app'][_0x5ba0c5(0x16b)]();return{'rawFlags':_0x423058,'appCode':_0x40ffbd[_0x5ba0c5(0x184)]||productEnv(_0x5ba0c5(0x17b))||(_0x3b58df?undefined:readAppCodeFromConfig()),'appCodeSource':_0x40ffbd['appCodeSource'],'apiDomain':getApiDomain(),'runtimeDomain':getRuntimeDomain(),'isNonInteractive':isNonInteractiveMode(_0x423058),'defaultFormat':_0x40ffbd['format'],'defaultPageSize':_0x40ffbd[_0x5ba0c5(0x16a)],'defaultVerbose':_0x40ffbd['verbose'],'riskLevel':_0x40ffbd[_0x5ba0c5(0x17c)],'nativeToolAvailable':_0x40ffbd['nativeToolAvailable'],'accessKey':_0x40ffbd[_0x5ba0c5(0x18a)],'env':_0x40ffbd[_0x5ba0c5(0x17f)],'mergedCli':{'defaultApp':_0x40ffbd[_0x5ba0c5(0x168)],'currentApp':_0x40ffbd[_0x5ba0c5(0x164)],'appCode':_0x40ffbd[_0x5ba0c5(0x184)]}};}export function createLovrabetRunnerAdapter(_0x502692={}){const _0x2f5c5d=a121_0x18b4,_0x12757c={'cliErrors':CliErrors,'pipelineFlags':GLOBAL_FLAGS['filter'](_0x44008a=>PIPELINE_FLAG_NAMES['has'](_0x44008a[_0x2f5c5d(0x173)]))[_0x2f5c5d(0x18b)](({name:_0x4403c6,type:_0x23a1f9,description:_0x503383})=>({'name':_0x4403c6,'type':_0x23a1f9,'description':_0x503383})),'formatOutput':_0x502692['formatOutput']??formatOutput,'getCommandLabel'(_0x3db1ff){return CLI_BIN_NAME+'\x20'+_0x3db1ff['service']+'\x20'+_0x3db1ff['command'];},'riskPolicy':{'onViolation'(_0x213579,{def:_0x3d5080,env:_0x2a507c}){const _0x4e3f10=_0x2f5c5d;if(shouldRouteWriteToNativeTool(_0x3d5080,_0x2a507c))return;console[_0x4e3f10(0x19c)](_0x213579);},'createError'(_0x328458,{def:_0x33bdd5,env:_0x1e99f8}){const _0x49d2c2=_0x2f5c5d;if(shouldRouteWriteToNativeTool(_0x33bdd5,_0x1e99f8))return CliErrors[_0x49d2c2(0x167)](CLI_BIN_NAME+'\x20'+_0x33bdd5[_0x49d2c2(0x196)]+'\x20'+_0x33bdd5[_0x49d2c2(0x166)]);return CliErrors[_0x49d2c2(0x1a0)](_0x328458);}},async 'prepare'(_0x1703d,_0xdae4c){const _0x2098a3=_0x2f5c5d,_0x536027=resolveAuthMode(_0xdae4c);if(_0x1703d[_0x2098a3(0x15d)]!==![]){if(!_0xdae4c[_0x2098a3(0x18a)])throw CliErrors['authRequired'](_0x2098a3(0x19a)+PRODUCT_CONFIG[_0x2098a3(0x185)]+'\x20or\x20pass\x20'+productEnvName(_0x2098a3(0x165))+'.');const {setActiveAK:_0x564c01}=await import(_0x2098a3(0x191));_0x564c01(_0xdae4c[_0x2098a3(0x18a)]);}let _0x5eb0e4='';if(_0x1703d[_0x2098a3(0x163)]!==![]){_0x5eb0e4=_0xdae4c[_0x2098a3(0x184)]??'',_0x5eb0e4=await resolveExplicitAppName(_0x1703d,_0xdae4c,_0x5eb0e4);if(!_0x5eb0e4){await assertSelectedAppNameIsRuntimeAccessible(_0x1703d,_0xdae4c);throw CliErrors[_0x2098a3(0x15f)](_0x2098a3(0x176)+PRODUCT_CONFIG[_0x2098a3(0x185)]+'.');}await assertAppCodeIsRuntimeAccessible(_0x1703d,_0xdae4c,_0x5eb0e4);}if(_0x5eb0e4){const {initSdkClient:_0x1a33d3}=await import(_0x2098a3(0x197));_0x1a33d3({'appCode':_0x5eb0e4,'env':_0xdae4c[_0x2098a3(0x17f)]??_0x2098a3(0x181),'runtimeDomain':_0xdae4c[_0x2098a3(0x195)],'accessKey':_0xdae4c[_0x2098a3(0x18a)],'authMode':_0x536027}),sdkClientInitialized=!![];}return{'defaults':{'booleans':{'verbose':_0xdae4c[_0x2098a3(0x169)]},'numbers':{'pagesize':_0xdae4c['defaultPageSize']}},'extras':{'appCode':_0x5eb0e4,'cookie':'','apiDomain':_0xdae4c[_0x2098a3(0x199)],'apiDir':'','accessKey':_0xdae4c[_0x2098a3(0x18a)],'envName':_0xdae4c[_0x2098a3(0x17f)],'mergedCli':_0xdae4c[_0x2098a3(0x160)]}};},'confirmHighRisk':_0x502692[_0x2f5c5d(0x183)]??(async({def:_0x4733ff,env:_0x38126d,flags:_0x510f69,commandLabel:_0x19c73d})=>{const _0x447fab=_0x2f5c5d;if(_0x38126d[_0x447fab(0x16e)]){const _0x54d42f=reconstructCommandArgv(_0x4733ff,_0x510f69);throw CliErrors['validation'](_0x447fab(0x187)+_0x19c73d+_0x447fab(0x161)+(_0x447fab(0x18c)+_0x54d42f));}await requireConfirmationPrompt({'lines':buildConfirmationLines(_0x4733ff,_0x19c73d,_0x510f69),'createCancelledError':_0x103498=>CliErrors[_0x447fab(0x1a0)](_0x103498)});}),'mapDryRunError'(_0x1da4e2){return mapUserFacingExecuteError(_0x1da4e2);},'mapExecuteError'(_0x33285b){return mapUserFacingExecuteError(_0x33285b);},async 'finalize'(){await finalizeLovrabetRuntimeState();}};return _0x12757c;}function a121_0x18b4(_0x3588c4,_0x246060){_0x3588c4=_0x3588c4-0x15d;const _0x47b6dd=a121_0x47b6();let _0x18b4c3=_0x47b6dd[_0x3588c4];return _0x18b4c3;}function shouldRouteWriteToNativeTool(_0x39a1fa,_0x5b9381){const _0x4e1a38=a121_0x18b4;return _0x5b9381['nativeToolAvailable']===!![]&&(_0x39a1fa['risk']==='write'||_0x39a1fa[_0x4e1a38(0x193)]==='high-risk-write');}const terminalRunnerAdapter=createLovrabetRunnerAdapter();export async function finalizeLovrabetRuntimeState(){const _0x23d163=a121_0x18b4;try{if(sdkClientInitialized){const {clearSdkClient:_0x390fbb}=await import('../core/sdk-client.js');_0x390fbb();}}finally{sdkClientInitialized=![];const {clearActiveAK:_0x280699}=await import(_0x23d163(0x191));_0x280699();}}async function resolveExplicitAppName(_0x3b85c2,_0x4adf40,_0x37fa37){const _0x336546=a121_0x18b4;if(_0x3b85c2[_0x336546(0x163)]===![])return _0x37fa37;const _0x3b56e3=typeof _0x4adf40['rawFlags'][_0x336546(0x15e)]===_0x336546(0x162)?_0x4adf40[_0x336546(0x186)][_0x336546(0x15e)][_0x336546(0x16b)]():'';if(!_0x3b56e3)return _0x37fa37;const _0xaafaa=typeof _0x4adf40[_0x336546(0x186)][_0x336546(0x17e)]==='string'&&_0x4adf40['rawFlags']['appcode']['trim']()||productEnv('APPCODE');if(_0xaafaa||_0x4adf40[_0x336546(0x19f)]==='local-alias')return _0x37fa37;const {getRemoteAppList:_0x35fa2e}=await import('../commands/app/remote-source.js'),_0x5ac894=await _0x35fa2e({'env':_0x4adf40[_0x336546(0x17f)]??_0x336546(0x181),'accessKey':_0x4adf40[_0x336546(0x18a)]}),_0x1b59a2=findAppByName(_0x5ac894[_0x336546(0x182)],_0x3b56e3);if(_0x1b59a2&&!isRuntimeAccessibleApp(_0x1b59a2))throw runtimeInaccessibleAppError(_0x1b59a2,'\x22'+_0x3b56e3+'\x22');const _0x53b197=_0x1b59a2?.['appCode']?.[_0x336546(0x16b)]();if(_0x53b197)return _0x53b197;throw CliErrors[_0x336546(0x172)](_0x336546(0x18f)+_0x3b56e3,_0x336546(0x177)+CLI_BIN_NAME+'\x20app\x20list\x20--no-cache`\x20to\x20refresh\x20available\x20apps,\x20or\x20add\x20apps.'+_0x3b56e3+_0x336546(0x19b)+PRODUCT_CONFIG['newConfigFileName']+'.');}async function assertSelectedAppNameIsRuntimeAccessible(_0x20c80e,_0x12d0fe){const _0x6ff2a1=a121_0x18b4;if(_0x20c80e[_0x6ff2a1(0x163)]===![]||!_0x12d0fe[_0x6ff2a1(0x18a)])return;const _0x1fb8d0=(typeof _0x12d0fe[_0x6ff2a1(0x186)]['app']===_0x6ff2a1(0x162)&&_0x12d0fe['rawFlags'][_0x6ff2a1(0x15e)][_0x6ff2a1(0x16b)]()?_0x12d0fe['rawFlags'][_0x6ff2a1(0x15e)]:_0x12d0fe[_0x6ff2a1(0x160)]?.[_0x6ff2a1(0x164)]??_0x12d0fe[_0x6ff2a1(0x160)]?.['defaultApp'])?.['trim']();if(!_0x1fb8d0)return;const {getRemoteAppList:_0xcf800e}=await import(_0x6ff2a1(0x18d)),_0x415b7f=await _0xcf800e({'env':_0x12d0fe[_0x6ff2a1(0x17f)]??_0x6ff2a1(0x181),'accessKey':_0x12d0fe[_0x6ff2a1(0x18a)]}),_0x26d430=findAppByName(_0x415b7f[_0x6ff2a1(0x182)],_0x1fb8d0);if(_0x26d430&&!isRuntimeAccessibleApp(_0x26d430))throw runtimeInaccessibleAppError(_0x26d430,'\x22'+_0x1fb8d0+'\x22');}async function assertAppCodeIsRuntimeAccessible(_0x47d344,_0x49459f,_0x3bee5d){const _0x1aafca=a121_0x18b4;if(_0x47d344[_0x1aafca(0x163)]===![]||!_0x49459f[_0x1aafca(0x18a)])return;const {getRemoteAppList:_0x579593}=await import('../commands/app/remote-source.js'),_0x2296b6=await _0x579593({'env':_0x49459f[_0x1aafca(0x17f)]??'production','accessKey':_0x49459f[_0x1aafca(0x18a)]}),_0x2459e2=findAppByCode(_0x2296b6[_0x1aafca(0x182)],_0x3bee5d);if(_0x2459e2&&!isRuntimeAccessibleApp(_0x2459e2))throw runtimeInaccessibleAppError(_0x2459e2,_0x1aafca(0x18e)+_0x3bee5d+'\x22');}export async function runCommand(_0x530093,_0x4a9ae5,_0x13ff36=terminalRunnerAdapter){const _0x350558=a121_0x18b4;assertKnownCommandFlags(_0x530093,_0x4a9ae5[_0x350558(0x186)]),await runCommandWithAdapter(shouldApplyVersionPolicy(_0x530093)?withVersionPolicy(_0x530093):_0x530093,_0x4a9ae5,_0x13ff36);}function shouldApplyVersionPolicy(_0x415715){const _0x353728=a121_0x18b4;if([_0x353728(0x192),'schema',_0x353728(0x198)]['includes'](_0x415715[_0x353728(0x196)]))return![];return!(_0x415715[_0x353728(0x196)]===_0x353728(0x16f)&&_0x415715[_0x353728(0x166)]===_0x353728(0x16d));}function withVersionPolicy(_0x1de18c){return{..._0x1de18c,async 'execute'(_0x412c0b){const _0x5791f0=a121_0x18b4,_0x304bc1=await checkCliVersion();assertCliVersionSupported(_0x304bc1);const _0xd41660=shouldResolveUpdateNotice(_0x412c0b)?resolveLatestUpdateNotice(_0x304bc1)[_0x5791f0(0x194)](()=>null):Promise[_0x5791f0(0x17d)](null),_0xb14c52=await _0x1de18c['execute'](_0x412c0b);return attachUpdateNotice(_0xb14c52,await _0xd41660);}};}function shouldResolveUpdateNotice(_0x417828){const _0x20723f=a121_0x18b4;return _0x417828[_0x20723f(0x16c)]==='pretty'&&!_0x417828[_0x20723f(0x170)];}function attachUpdateNotice(_0x483fa6,_0x1dcde0){const _0x381f2f=a121_0x18b4;if(!_0x1dcde0||!_0x483fa6||typeof _0x483fa6!==_0x381f2f(0x171))return _0x483fa6;const _0x3cc7b9=_0x483fa6,_0xccbc42=typeof _0x3cc7b9[_0x381f2f(0x174)]===_0x381f2f(0x171)&&_0x3cc7b9[_0x381f2f(0x174)]!==null?_0x3cc7b9['_notice']:{};return{..._0x3cc7b9,'_notice':{..._0xccbc42,'update':_0x1dcde0}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4d3653,_0x38b0a5){const _0x3892eb=a122_0x5d39,_0x3d0ebd=_0x4d3653();while(!![]){try{const _0x56e70f=parseInt(_0x3892eb(0xfd))/0x1+parseInt(_0x3892eb(0xf9))/0x2+-parseInt(_0x3892eb(0xf2))/0x3*(parseInt(_0x3892eb(0xf1))/0x4)+-parseInt(_0x3892eb(0x103))/0x5*(parseInt(_0x3892eb(0x101))/0x6)+parseInt(_0x3892eb(0xf4))/0x7+-parseInt(_0x3892eb(0xfb))/0x8*(parseInt(_0x3892eb(0xf6))/0x9)+-parseInt(_0x3892eb(0xfc))/0xa;if(_0x56e70f===_0x38b0a5)break;else _0x3d0ebd['push'](_0x3d0ebd['shift']());}catch(_0x7eb9b){_0x3d0ebd['push'](_0x3d0ebd['shift']());}}}(a122_0x2f7f,0x1dfd1));import{buildSchemaPayload as a122_0x768d85}from'@lovrabet/cli-framework';function a122_0x5d39(_0xb723ce,_0x5c93ad){_0xb723ce=_0xb723ce-0xf0;const _0x2f7f1e=a122_0x2f7f();let _0x5d3943=_0x2f7f1e[_0xb723ce];return _0x5d3943;}import{buildAllFlags}from'../framework/build-all-flags.js';import{findDynamicServiceDefinition,listDynamicServiceEntries}from'../commands/service/dynamic.js';import{insertDynamicServicesAfterServiceTree}from'../framework/service-order.js';function a122_0x2f7f(){const _0x21ce40=['142452xQuekS','filter','760eCXVXC','226210uCKBwv','221119kJZroo','commands','services','required','73158uyqDlI','map','35Ptylvm','auth','none','1684qbPOoE','1188JNeaPt','service','1383277pcuYAF','../commands/registry.js','8757tSPYIf','requiresAuth','has'];a122_0x2f7f=function(){return _0x21ce40;};return a122_0x2f7f();}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 _0x147530=a122_0x5d39,{serviceRegistry:_0xd5af1d,findDefinition:_0x409dc2}=await import(_0x147530(0xf5)),_0xeb2c03=new Set(_0xd5af1d[_0x147530(0x102)](_0x4ee19b=>_0x4ee19b[_0x147530(0xf3)])),_0x4ab7b4=listDynamicServiceEntries()[_0x147530(0xfa)](_0x2b11db=>!_0xeb2c03[_0x147530(0xf8)](_0x2b11db[_0x147530(0xf3)])),_0xeb5e8b=a122_0x768d85({'cliBinName':CLI_BIN_NAME,'cliDisplayName':CLI_DISPLAY_NAME,'cliVersion':getCliVersion(),'gitCommit':getCliGitCommit(),'globalFlags':GLOBAL_FLAGS,'serviceRegistry':insertDynamicServicesAfterServiceTree(_0xd5af1d,_0x4ab7b4),'buildAllFlags':buildAllFlags,'findDefinition':(_0x392efe,_0x29db51)=>_0x409dc2(_0x392efe,_0x29db51)??findDynamicServiceDefinition(_0x392efe,_0x29db51)});return normalizeSchemaPayload(_0xeb5e8b);}function normalizeSchemaPayload(_0x55b7be){const _0x199130=a122_0x5d39;return{..._0x55b7be,'schemaVersion':0x2,'services':_0x55b7be[_0x199130(0xff)][_0x199130(0x102)](_0x333da2=>({..._0x333da2,'commands':_0x333da2[_0x199130(0xfe)][_0x199130(0x102)](normalizeSchemaCommand)}))};}function normalizeSchemaCommand(_0x4068ea){const _0x29ee2e=a122_0x5d39,_0x221897=_0x4068ea;return{..._0x4068ea,'auth':_0x221897[_0x29ee2e(0x104)]??(_0x4068ea[_0x29ee2e(0xf7)]?_0x29ee2e(0x100):_0x29ee2e(0xf0))};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a123_0x3157(_0x14c8d7,_0x79fb6c){_0x14c8d7=_0x14c8d7-0x1e9;const _0x346bdc=a123_0x346b();let _0x3157ea=_0x346bdc[_0x14c8d7];return _0x3157ea;}(function(_0x361c34,_0x30c004){const _0x43e68b=a123_0x3157,_0x7bb71a=_0x361c34();while(!![]){try{const _0x552cda=-parseInt(_0x43e68b(0x1f0))/0x1+parseInt(_0x43e68b(0x1eb))/0x2+parseInt(_0x43e68b(0x1ef))/0x3+-parseInt(_0x43e68b(0x1ee))/0x4*(-parseInt(_0x43e68b(0x1f2))/0x5)+-parseInt(_0x43e68b(0x1f4))/0x6+parseInt(_0x43e68b(0x1f5))/0x7+parseInt(_0x43e68b(0x1ed))/0x8*(-parseInt(_0x43e68b(0x1e9))/0x9);if(_0x552cda===_0x30c004)break;else _0x7bb71a['push'](_0x7bb71a['shift']());}catch(_0x370cc6){_0x7bb71a['push'](_0x7bb71a['shift']());}}}(a123_0x346b,0x822f3));function a123_0x346b(){const _0x3a81af=['645788SySrGH','service','6005HJBQly','findIndex','4350768qBthzP','6180202UfHZkg','11745234XnoeKT','slice','1048542cWByBH','length','8zKCFqp','2996HQnxIq','2707413hFaAdV'];a123_0x346b=function(){return _0x3a81af;};return a123_0x346b();}export function insertDynamicServicesAfterServiceTree(_0x4468b0,_0x109515){const _0x286860=a123_0x3157;if(_0x109515[_0x286860(0x1ec)]===0x0)return[..._0x4468b0];const _0x43b4bb=_0x4468b0[_0x286860(0x1f3)](_0x2e7187=>_0x2e7187[_0x286860(0x1f1)]==='service');if(_0x43b4bb<0x0)return[..._0x4468b0,..._0x109515];return[..._0x4468b0['slice'](0x0,_0x43b4bb+0x1),..._0x109515,..._0x4468b0[_0x286860(0x1ea)](_0x43b4bb+0x1)];}
|
package/lib/framework/types.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x12382d,_0x1128ab){var _0x1b5c75=a124_0x7ce2,_0x1d8032=_0x12382d();while(!![]){try{var _0x3fe7ba=-parseInt(_0x1b5c75(0xdc))/0x1+-parseInt(_0x1b5c75(0xe0))/0x2+-parseInt(_0x1b5c75(0xdd))/0x3*(parseInt(_0x1b5c75(0xdf))/0x4)+parseInt(_0x1b5c75(0xde))/0x5+parseInt(_0x1b5c75(0xe2))/0x6+-parseInt(_0x1b5c75(0xdb))/0x7+-parseInt(_0x1b5c75(0xe1))/0x8*(-parseInt(_0x1b5c75(0xe3))/0x9);if(_0x3fe7ba===_0x1128ab)break;else _0x1d8032['push'](_0x1d8032['shift']());}catch(_0x27f2c2){_0x1d8032['push'](_0x1d8032['shift']());}}}(a124_0xc239,0xdc7c9));function a124_0x7ce2(_0x48be33,_0x45c523){_0x48be33=_0x48be33-0xdb;var _0xc239e1=a124_0xc239();var _0x7ce208=_0xc239e1[_0x48be33];return _0x7ce208;}export{riskLevelOrder,normalizeLegacyOutputFormat,isValidFormat}from'@lovrabet/cli-framework';function a124_0xc239(){var _0x5529ed=['9ZTIrJz','6796146zHoiBb','799496xuWTll','1322865UzvEzT','3211150tElPca','12rcfutM','2438238vzfpvT','28073600jUjJQq','6384246PxUzyK'];a124_0xc239=function(){return _0x5529ed;};return a124_0xc239();}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const VERSION = "2.3.4-beta.
|
|
2
|
-
export declare const GIT_TAG = "v2.3.4-beta.
|
|
3
|
-
export declare const GIT_COMMIT = "
|
|
4
|
-
export declare const BUILD_TIME = "2026-09-
|
|
1
|
+
export declare const VERSION = "2.3.4-beta.2";
|
|
2
|
+
export declare const GIT_TAG = "v2.3.4-beta.2";
|
|
3
|
+
export declare const GIT_COMMIT = "2d31e72";
|
|
4
|
+
export declare const BUILD_TIME = "2026-09-21T09:45:58.127Z";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a125_0x59ff17=a125_0x2737;function a125_0x2737(_0x1c13ba,_0x1ab8a4){_0x1c13ba=_0x1c13ba-0x1c7;const _0x28caf3=a125_0x28ca();let _0x273798=_0x28caf3[_0x1c13ba];return _0x273798;}(function(_0x2c51b3,_0xcd8681){const _0x4b8aca=a125_0x2737,_0xbd91b9=_0x2c51b3();while(!![]){try{const _0x46e46c=-parseInt(_0x4b8aca(0x1d2))/0x1+parseInt(_0x4b8aca(0x1cc))/0x2*(-parseInt(_0x4b8aca(0x1ce))/0x3)+-parseInt(_0x4b8aca(0x1ca))/0x4*(parseInt(_0x4b8aca(0x1cb))/0x5)+parseInt(_0x4b8aca(0x1d3))/0x6*(parseInt(_0x4b8aca(0x1c7))/0x7)+parseInt(_0x4b8aca(0x1c8))/0x8*(parseInt(_0x4b8aca(0x1d1))/0x9)+parseInt(_0x4b8aca(0x1c9))/0xa+parseInt(_0x4b8aca(0x1d0))/0xb;if(_0x46e46c===_0xcd8681)break;else _0xbd91b9['push'](_0xbd91b9['shift']());}catch(_0x1c7e2a){_0xbd91b9['push'](_0xbd91b9['shift']());}}}(a125_0x28ca,0x1bf04));export const VERSION=a125_0x59ff17(0x1cf);export const GIT_TAG='v2.3.4-beta.2';export const GIT_COMMIT=a125_0x59ff17(0x1d4);function a125_0x28ca(){const _0x4804ff=['76077YvakqK','206740ZrOcFc','6SQUhGd','2d31e72','864647MypLDK','40msGcNh','402100ulMybC','52cgYaTU','69380aXBADR','2kaVwCD','2026-09-21T09:45:58.127Z','227082MUYtTH','2.3.4-beta.2','4083882bjRvGT'];a125_0x28ca=function(){return _0x4804ff;};return a125_0x28ca();}export const BUILD_TIME=a125_0x59ff17(0x1cd);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export declare const ROUTING_CATALOG_DIGEST: "
|
|
1
|
+
export declare const ROUTING_CATALOG_DIGEST: "886843ef89aa4ff2b36d612e8fbd1b6c1840b37728916fba5699be34129ef579";
|
|
2
2
|
export declare const DEFAULT_REGION: "cn";
|
|
3
3
|
export declare const REGION_VALUES: readonly ["cn", "id", "global"];
|
|
4
|
-
export declare const ENABLED_REGION_VALUES: readonly ["cn", "id"];
|
|
4
|
+
export declare const ENABLED_REGION_VALUES: readonly ["cn", "id", "global"];
|
|
5
5
|
export declare const OFFICIAL_ROUTING_PROFILES: {
|
|
6
6
|
readonly cn: {
|
|
7
7
|
readonly enabled: true;
|
|
@@ -13,12 +13,14 @@ export declare const OFFICIAL_ROUTING_PROFILES: {
|
|
|
13
13
|
readonly api: "https://api.lovrabet.com";
|
|
14
14
|
readonly runtime: "https://runtime.lovrabet.com";
|
|
15
15
|
readonly skill: "https://skills.lovrabet.com";
|
|
16
|
+
readonly kbService: "https://kb-service.lovrabet.com";
|
|
16
17
|
};
|
|
17
18
|
readonly daily: {
|
|
18
19
|
readonly user: "https://user-daily.lovrabet.com";
|
|
19
20
|
readonly api: "https://daily-api.lovrabet.com";
|
|
20
21
|
readonly runtime: "https://daily-runtime.lovrabet.com";
|
|
21
22
|
readonly skill: "https://skills-daily.lovrabet.com";
|
|
23
|
+
readonly kbService: "https://kb-service-daily.lovrabet.com";
|
|
22
24
|
};
|
|
23
25
|
};
|
|
24
26
|
};
|
|
@@ -32,11 +34,12 @@ export declare const OFFICIAL_ROUTING_PROFILES: {
|
|
|
32
34
|
readonly api: "https://api.lovrabet.id";
|
|
33
35
|
readonly runtime: "https://runtime.lovrabet.id";
|
|
34
36
|
readonly skill: "https://skills.lovrabet.id";
|
|
37
|
+
readonly kbService: "https://kb-service.lovrabet.id";
|
|
35
38
|
};
|
|
36
39
|
};
|
|
37
40
|
};
|
|
38
41
|
readonly global: {
|
|
39
|
-
readonly enabled:
|
|
42
|
+
readonly enabled: true;
|
|
40
43
|
readonly label: "Global";
|
|
41
44
|
readonly aliases: readonly [];
|
|
42
45
|
readonly serviceDomains: {
|
|
@@ -46,6 +49,12 @@ export declare const OFFICIAL_ROUTING_PROFILES: {
|
|
|
46
49
|
readonly runtime: "https://runtime.lovrabet.ai";
|
|
47
50
|
readonly skill: "https://skills.lovrabet.ai";
|
|
48
51
|
};
|
|
52
|
+
readonly daily: {
|
|
53
|
+
readonly user: "https://user-daily.lovrabet.ai";
|
|
54
|
+
readonly api: "https://daily-api.lovrabet.ai";
|
|
55
|
+
readonly runtime: "https://daily-runtime.lovrabet.ai";
|
|
56
|
+
readonly skill: "https://skills-daily.lovrabet.ai";
|
|
57
|
+
};
|
|
49
58
|
};
|
|
50
59
|
};
|
|
51
60
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a126_0x10b1da=a126_0x4372;function a126_0x4372(_0x3c5e1c,_0x2f1c9b){_0x3c5e1c=_0x3c5e1c-0xf1;const _0x327ab0=a126_0x327a();let _0x4372e3=_0x327ab0[_0x3c5e1c];return _0x4372e3;}function a126_0x327a(){const _0x1a58fd=['424Dlbirf','https://daily-api.lovrabet.com','998320JFINIm','https://user.lovrabet.com','44640zhUeiX','https://skills.lovrabet.id','https://user.lovrabet.ai','162MPFftI','china','https://api.lovrabet.ai','https://skills-daily.lovrabet.ai','global','1728055Gmvzxb','Indonesia','159mdhVnW','1108340ILpSAx','https://skills-daily.lovrabet.com','https://api.lovrabet.id','https://user-daily.lovrabet.com','Global','indonesia','https://daily-runtime.lovrabet.com','https://runtime.lovrabet.com','1314297NOhPgd','457iUYjor','https://user-daily.lovrabet.ai','886843ef89aa4ff2b36d612e8fbd1b6c1840b37728916fba5699be34129ef579','https://daily-runtime.lovrabet.ai','https://user.lovrabet.id','https://kb-service-daily.lovrabet.com','5520lMdXmj','https://api.lovrabet.com','https://skills.lovrabet.com','https://skills.lovrabet.ai','https://runtime.lovrabet.ai','Mainland\x20China'];a126_0x327a=function(){return _0x1a58fd;};return a126_0x327a();}(function(_0x5af0ec,_0x3c4fe5){const _0x1bb52b=a126_0x4372,_0x456884=_0x5af0ec();while(!![]){try{const _0x30748e=-parseInt(_0x1bb52b(0xfb))/0x1*(-parseInt(_0x1bb52b(0x107))/0x2)+-parseInt(_0x1bb52b(0xf1))/0x3*(parseInt(_0x1bb52b(0x101))/0x4)+-parseInt(_0x1bb52b(0x10b))/0x5*(-parseInt(_0x1bb52b(0x10e))/0x6)+parseInt(_0x1bb52b(0x113))/0x7+-parseInt(_0x1bb52b(0x109))/0x8+-parseInt(_0x1bb52b(0xfa))/0x9+-parseInt(_0x1bb52b(0xf2))/0xa;if(_0x30748e===_0x3c4fe5)break;else _0x456884['push'](_0x456884['shift']());}catch(_0x5659a8){_0x456884['push'](_0x456884['shift']());}}}(a126_0x327a,0x1fbd8));export const ROUTING_CATALOG_DIGEST=a126_0x10b1da(0xfd);export const DEFAULT_REGION='cn';export const REGION_VALUES=['cn','id','global'];export const ENABLED_REGION_VALUES=['cn','id',a126_0x10b1da(0x112)];export const OFFICIAL_ROUTING_PROFILES={'cn':{'enabled':!![],'label':a126_0x10b1da(0x106),'aliases':[a126_0x10b1da(0x10f)],'serviceDomains':{'production':{'user':a126_0x10b1da(0x10a),'api':a126_0x10b1da(0x102),'runtime':a126_0x10b1da(0xf9),'skill':a126_0x10b1da(0x103),'kbService':'https://kb-service.lovrabet.com'},'daily':{'user':a126_0x10b1da(0xf5),'api':a126_0x10b1da(0x108),'runtime':a126_0x10b1da(0xf8),'skill':a126_0x10b1da(0xf3),'kbService':a126_0x10b1da(0x100)}}},'id':{'enabled':!![],'label':a126_0x10b1da(0x114),'aliases':[a126_0x10b1da(0xf7)],'serviceDomains':{'production':{'user':a126_0x10b1da(0xff),'api':a126_0x10b1da(0xf4),'runtime':'https://runtime.lovrabet.id','skill':a126_0x10b1da(0x10c),'kbService':'https://kb-service.lovrabet.id'}}},'global':{'enabled':!![],'label':a126_0x10b1da(0xf6),'aliases':[],'serviceDomains':{'production':{'user':a126_0x10b1da(0x10d),'api':a126_0x10b1da(0x110),'runtime':a126_0x10b1da(0x105),'skill':a126_0x10b1da(0x104)},'daily':{'user':a126_0x10b1da(0xfc),'api':'https://daily-api.lovrabet.ai','runtime':a126_0x10b1da(0xfe),'skill':a126_0x10b1da(0x111)}}}};export const REGION_ALIASES={'china':'cn','indonesia':'id'};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export declare const ENTERPRISE_ROUTING_SCHEMA_DIGEST: "
|
|
1
|
+
export declare const ENTERPRISE_ROUTING_SCHEMA_DIGEST: "e3423cad71c22edb18a8481be7bdb733ff2d4136c31aa3ae6da56271e32cced7";
|
|
2
2
|
export declare const ENTERPRISE_ROUTING_PROTOCOL: "lovrabet-routing/v1";
|
|
3
3
|
export declare const ENTERPRISE_ROUTING_KIND: "enterprise";
|
|
4
|
-
export declare const ENTERPRISE_ROUTING_DOMAIN_FIELDS: readonly ["userDomain", "apiDomain", "runtimeDomain", "skillDomain"];
|
|
4
|
+
export declare const ENTERPRISE_ROUTING_DOMAIN_FIELDS: readonly ["userDomain", "apiDomain", "runtimeDomain", "skillDomain", "kbServiceDomain"];
|
|
5
5
|
export declare const REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS: readonly ["userDomain", "apiDomain", "runtimeDomain", "skillDomain"];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a127_0x20ba2c=a127_0x1252;function a127_0x1252(_0x3fce48,_0x2877ba){_0x3fce48=_0x3fce48-0xc6;const _0x5951d9=a127_0x5951();let _0x1252e1=_0x5951d9[_0x3fce48];return _0x1252e1;}function a127_0x5951(){const _0x59dbf9=['runtimeDomain','kbServiceDomain','enterprise','1089305eEIKTh','2005BoCBTi','1046Awjixn','8167430PQhzKu','64kLljlt','lovrabet-routing/v1','e3423cad71c22edb18a8481be7bdb733ff2d4136c31aa3ae6da56271e32cced7','userDomain','156537XMYyBl','apiDomain','552228oxSfbO','1557LOVRcL','135954IHOfDj','1020DONHJQ'];a127_0x5951=function(){return _0x59dbf9;};return a127_0x5951();}(function(_0x2e2995,_0xbde3ac){const _0x1f124f=a127_0x1252,_0x8b7e86=_0x2e2995();while(!![]){try{const _0x24b368=-parseInt(_0x1f124f(0xd5))/0x1+-parseInt(_0x1f124f(0xcb))/0x2*(parseInt(_0x1f124f(0xd4))/0x3)+-parseInt(_0x1f124f(0xd3))/0x4+parseInt(_0x1f124f(0xca))/0x5*(-parseInt(_0x1f124f(0xd6))/0x6)+-parseInt(_0x1f124f(0xc9))/0x7+parseInt(_0x1f124f(0xcd))/0x8*(parseInt(_0x1f124f(0xd1))/0x9)+parseInt(_0x1f124f(0xcc))/0xa;if(_0x24b368===_0xbde3ac)break;else _0x8b7e86['push'](_0x8b7e86['shift']());}catch(_0x362601){_0x8b7e86['push'](_0x8b7e86['shift']());}}}(a127_0x5951,0x2d91e));export const ENTERPRISE_ROUTING_SCHEMA_DIGEST=a127_0x20ba2c(0xcf);export const ENTERPRISE_ROUTING_PROTOCOL=a127_0x20ba2c(0xce);export const ENTERPRISE_ROUTING_KIND=a127_0x20ba2c(0xc8);export const ENTERPRISE_ROUTING_DOMAIN_FIELDS=[a127_0x20ba2c(0xd0),a127_0x20ba2c(0xd2),a127_0x20ba2c(0xc6),'skillDomain',a127_0x20ba2c(0xc7)];export const REQUIRED_ENTERPRISE_ROUTING_DOMAIN_FIELDS=[a127_0x20ba2c(0xd0),a127_0x20ba2c(0xd2),a127_0x20ba2c(0xc6),'skillDomain'];
|
package/lib/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x90c2eb,_0x344444){const _0x2cc8b9=a128_0x439c,_0x5a4226=_0x90c2eb();while(!![]){try{const _0x588d5e=-parseInt(_0x2cc8b9(0x1f9))/0x1*(-parseInt(_0x2cc8b9(0x1f8))/0x2)+parseInt(_0x2cc8b9(0x1ef))/0x3*(-parseInt(_0x2cc8b9(0x1f1))/0x4)+-parseInt(_0x2cc8b9(0x1ec))/0x5*(parseInt(_0x2cc8b9(0x1f7))/0x6)+-parseInt(_0x2cc8b9(0x1fb))/0x7*(parseInt(_0x2cc8b9(0x1f3))/0x8)+-parseInt(_0x2cc8b9(0x1ed))/0x9*(-parseInt(_0x2cc8b9(0x1eb))/0xa)+-parseInt(_0x2cc8b9(0x1ee))/0xb*(-parseInt(_0x2cc8b9(0x1f6))/0xc)+parseInt(_0x2cc8b9(0x1f5))/0xd*(parseInt(_0x2cc8b9(0x1fa))/0xe);if(_0x588d5e===_0x344444)break;else _0x5a4226['push'](_0x5a4226['shift']());}catch(_0x44c58d){_0x5a4226['push'](_0x5a4226['shift']());}}}(a128_0x4242,0x374f2));import{jsx as a128_0x181689,jsxs as a128_0x1a5ea7}from'react/jsx-runtime';import{useEffect}from'react';import{Box,Text,useApp}from'ink';function a128_0x439c(_0x338398,_0x4d7368){_0x338398=_0x338398-0x1eb;const _0x424223=a128_0x4242();let _0x439c63=_0x424223[_0x338398];return _0x439c63;}function a128_0x4242(){const _0x1a9706=['2HOlaug','3893610eCyiOT','327264ydGako','380MHXKqy','25775KjRnDi','56655xFNTBj','908171FmowNa','3WzqxeG','\x20\x20Use\x20','743124UmYNcI','\x20to\x20view\x20available\x20commands.','40aWRtvj','green','13FVxOKs','12cgnIwc','438cUUpFW','422516dcKDRP'];a128_0x4242=function(){return _0x1a9706;};return a128_0x4242();}import{CLI_BIN_NAME,CLI_DISPLAY_NAME}from'./constant/cli.js';export function Help(){const _0xa0fbd9=a128_0x439c,{exit:_0x4ebb1e}=useApp();return useEffect(()=>{_0x4ebb1e();},[_0x4ebb1e]),a128_0x1a5ea7(Box,{'flexDirection':'column','marginTop':0x1,'marginBottom':0x1,'children':[a128_0x181689(Box,{'children':a128_0x181689(Text,{'bold':!![],'color':_0xa0fbd9(0x1f4),'children':'\x20\x20'+CLI_DISPLAY_NAME})}),a128_0x1a5ea7(Box,{'marginTop':0x1,'children':[a128_0x181689(Text,{'dimColor':!![],'children':_0xa0fbd9(0x1f0)}),a128_0x181689(Text,{'bold':!![],'color':'green','children':CLI_BIN_NAME+'\x20--help'}),a128_0x181689(Text,{'dimColor':!![],'children':_0xa0fbd9(0x1f2)})]})]});}
|
package/lib/postinstall.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a129_0x2f6b(_0x31d644,_0x427903){_0x31d644=_0x31d644-0x162;const _0x2fb323=a129_0x2fb3();let _0x2f6ba5=_0x2fb323[_0x31d644];return _0x2f6ba5;}(function(_0x4fb790,_0x817429){const _0x3467b2=a129_0x2f6b,_0x5fa3aa=_0x4fb790();while(!![]){try{const _0x29ed32=parseInt(_0x3467b2(0x170))/0x1+-parseInt(_0x3467b2(0x169))/0x2*(-parseInt(_0x3467b2(0x172))/0x3)+-parseInt(_0x3467b2(0x171))/0x4+parseInt(_0x3467b2(0x17a))/0x5+parseInt(_0x3467b2(0x179))/0x6*(parseInt(_0x3467b2(0x174))/0x7)+parseInt(_0x3467b2(0x163))/0x8*(-parseInt(_0x3467b2(0x16a))/0x9)+parseInt(_0x3467b2(0x177))/0xa*(-parseInt(_0x3467b2(0x16d))/0xb);if(_0x29ed32===_0x817429)break;else _0x5fa3aa['push'](_0x5fa3aa['shift']());}catch(_0x3bc827){_0x5fa3aa['push'](_0x5fa3aa['shift']());}}}(a129_0x2fb3,0x827ff));import{installBuiltinSkill}from'./skills/builtin-skill.js';export async function runPostinstall(_0x55780c={}){const _0x46c87a=a129_0x2f6b,_0x18a20a=installBuiltinSkill(_0x55780c);if(_0x18a20a['ok']){const _0x329d8e=_0x18a20a['changed']?_0x46c87a(0x164):_0x46c87a(0x166),_0x38ff9c=_0x18a20a[_0x46c87a(0x173)]?_0x46c87a(0x162)+_0x18a20a['installedPath']:_0x46c87a(0x16e);return console[_0x46c87a(0x16b)](_0x46c87a(0x17b)+_0x18a20a[_0x46c87a(0x16c)]+'\x20'+_0x329d8e+_0x38ff9c),_0x18a20a;}const _0x11b293='[BUILTIN_SKILL_INSTALL_'+(_0x18a20a['code']??_0x46c87a(0x176))+']\x20'+(_0x18a20a[_0x46c87a(0x168)]??_0x46c87a(0x167))+'.\x20'+(_0x46c87a(0x16f)+_0x18a20a['repairCommand']);if(_0x18a20a[_0x46c87a(0x165)]===_0x46c87a(0x178))throw new Error(_0x11b293);return console[_0x46c87a(0x175)](_0x11b293),_0x18a20a;}function a129_0x2fb3(){const _0x3b743f=['\x20via\x20skills@latest','Repair\x20with:\x20','322256hhGZmg','1604396QtvxLj','2065701FPJMFW','installedPath','146237kTuKVI','warn','FAILED','16192290zcaiuv','SOURCE_INVALID','282disyCg','2874020opzTNG','Lovrabet\x20Built-in\x20Skill\x20','\x20at\x20','7784RhbOEC','installed','code','already\x20current','Installation\x20failed','error','2LswLln','117wrmGpd','log','skillVersion','11KNitpz'];a129_0x2fb3=function(){return _0x3b743f;};return a129_0x2fb3();}
|